Posts by Cristiano Menezes Silva • 26 points
2 posts
-
1
votes1
answer89
viewsA: Filter Dataframe pandas with two or more conditions
Using & operator, don’t forget to wrap the sub-structures with (). men_smoker = df[(df.sex=='Male') & (df.smoker=='Yes')].count()[0]
-
0
votes4
answers143
viewsA: Show days of the week
As they answered, you can use the weekday to search the tuple, being 0 Monday and 6 Sunday. from datetime import date diadasemana = ('Segunda', 'terça', 'quarta', 'quinta', 'sexta', 'Sábado',…