Posts by Pedro Vitor • 1 point
2 posts
-
0
votes1
answer22
viewsA: IF no pandas returning The Truth value of a Series is ambiguous. Use a.Empty, a.bool(), a.item(), a.any() or a.all()
I was able to do by np select. instal_final_csa2 =instal_final_csa conditions = [((instal_final_csa2['MÊS'] >= 4 )&(instal_final_csa2['MÊS'] <= 12))&(instal_final_csa2['ANO'] == 2016),…
-
0
votes1
answer22
viewsQ: IF no pandas returning The Truth value of a Series is ambiguous. Use a.Empty, a.bool(), a.item(), a.any() or a.all()
I have a DS with two columns, one with a month from 1 to 12, and another with a year from 2015 to 2021, and I’m trying to create a column called Fiscal Year. I am creating a function so that when…