apply method, should return certain columns as datetime but returns them as int[64] instead #18700
Labels
Dtype Conversions
Unexpected or buggy dtype conversions
Duplicate Report
Duplicate issue or pull request
Reshaping
Concat, Merge/Join, Stack/Unstack, Explode
Code Sample, a copy-pastable example if possible
returns:
Problem description
This should obviously return a dataframe with timestamps in the column
date
. Here it is having the numerical.value
of the timestamp instead.Please don't come up with answer like : " use
df['date']=pd.Timestamp("2017-01-01")
. "I simplified a lot my problem as to focus on the datetime with
.apply
. I need to use.apply
in my real life code.Expected Output
The text was updated successfully, but these errors were encountered: