0
I’m starting in the world of Python
, I wrote the excerpt below and wanted your help to make it more efficient:
dforigin = pd.read_csv(client_file_name.csv, sep=';')
total_line_number = len(dforigin.index)
for i, row in dforigin.iterrows():
dforigin.Dia.loc[i] = datetime.strftime(datetime.strptime(dforigin.Dia[i],
'%Y-%m-%d'), '%Y%m%d')
This excerpt was only created because I wanted to change the date format on dateframe.
Noooossa, what a difference!!! Thank you!
– Sabrina Bergoch