'Error pandas groupby : "Expected unicode, got quoted_na"
This instruction : decoke_df.START.groupby(decoke_df.DECOKE_ID).min().to_list()
throws me the error : "Expected unicode, got quoted_na"
.
The field START comes from a database read by sqlalchemy and is dtype : datetime64[ns]
It looks correct when I look at it and I can do date operations on this field with any problem.
I also get the same error when I replace START by a numeric field, so this is not specific to datetime.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|