Posts by Matheus Macedo • 27 points
3 posts
-
0
votes2
answers3879
viewsQ: How to separate the year from a date with Python and Pandas?
I have a student database with a Ticket Date column in the dd/mm/aa format. I need to generate an Ano_ticket column only with the year of the date of each record. import pandas as pd df =…
-
1
votes3
answers1073
viewsQ: How to change CSV in Python and Pandas?
I am a beginner in Python and need a help. I have a csv file that has only one column with age data. I need to transform the integers into ranges, like "ate_21_anos", "ate_24_anos", etc. The problem…
-
0
votes3
answers3451
viewsQ: How to count the records of a csv in python?
I’m a beginner in Python and I’m having a hard time. I have a CSV database separated by ";" with 6 columns. I’d like to count how many records you have, the sex of which is "Female". You can tell me…