Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
733 views
in Technique[技术] by (71.8m points)

pandas - Dask Data Frame OutOfBoundsDatetime Error

I'm getting the following error while trying to perform operations on a datetime[ns] column in the Dask data frame:

OutOfBoundsDatetime: Out of bounds nanosecond timestamp: 3019-01-31 00:00:00

The operations I'm trying to perform are:

[1] print(df_calls['CALL_TS'].min().compute(), df_calls['CALL_TS'].max().compute())

[2] pd.concat([df_calls.isnull().sum().compute(), df_calls.isnull().sum().compute()/len(df_calls)],1)
.rename(columns={0:'count', 1:'fraction'})

when I try to get min and max on the pandas data frame, it works, so why it is not working on dask data frame.

The min and max date in CALL_TS are: 2018-03-26; 2020-12-30.

Thanks a lot for your help.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...