-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Datetime-like values errors #20
Comments
Have the same problem using date. It is supported according to the AVRO specification, see here. So, the type casting here should be extended: import datetime
NUMPY_TO_AVRO_TYPES = {
....
datetime.date: {'type': 'int', 'logicalType': 'date'}
} I just don't know where the date would be converted to int (starting at unix epoch 1 January 1970) |
df['column_name'] = df['column_name'].astype(np.datetime64)
This issue actually comes from The easiest solution to this (other than trying to fix this in |
Got some problems with datetime-like values.
Tried with pandas
1.0.3
and0.25.3
, both don't working.fastavro
0.23.4
.date
NaTType
The text was updated successfully, but these errors were encountered: