0
Pandas has the strftime function if it can convert the date to a string with the format you want. Link to documentation.
df["Date"].dt.strftime("%d/%m/%y")
0
1
Pandas has the strftime function if it can convert the date to a string with the format you want. Link to documentation.
df["Date"].dt.strftime("%d/%m/%y")
0
You can use the Pandas apply function.
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Series.apply.html
Example:
def convert_data(dt):
# Formata a data aqui
return new_dt
df['date'] = df['date'].apply(convert_data)
Browser other questions tagged python loop pandas replace
You are not signed in. Login or sign up in order to post.