Jan-20-2022, 12:53 AM
Hi all,
I have a dataframe df2 with a 'DATE' column that starts with 17169 in row 2. I'm trying to create a new column with a human readable format:
This...
I have a dataframe df2 with a 'DATE' column that starts with 17169 in row 2. I'm trying to create a new column with a human readable format:
This...
df2['Human Date'] = datetime.utcfromtimestamp(17169*86400).strftime('%Y-%m-%d')...returns '2017-01-03'. Why doesn't this...
df2['Human Date'] = datetime.utcfromtimestamp(df2['DATE']*86400).strftime('%Y-%m-%d')...create a new column and populate based on the same row of the 'DATE' column? Instead, it gives the TypeError shown in the thread subject.