Posts by Natanael Junior • 53 points
2 posts
-
4
votes2
answers11353
viewsQ: How to format dates in python?
When I do so: data = input('data [d/m/Y]: ') print(data) data2 = datetime.strptime(data, "%d/%m/%Y") print(data2) returns to me like this: data [d/m/Y]: 17/08/2018 17/08/2018 2018-08-17 00:00:00 how…
pythonasked Natanael Junior 53 -
1
votes1
answer6739
viewsQ: Date column of the Dataframe
I have this Dataframe and would like to separate the column from the date as I do it? Data e Hora Consumo(litros) Valor Acumulado 0 2017-08-21 20:00:00 65 65 1 2017-08-21 21:00:00 81 146 2…