Replies: 1 comment
-
Thanks for the headsup, fixed in commit bdd5599. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I found the running had this issue:
init.py:2432: FutureWarning: casting datetime64[ns] values to int64 with .astype(...) is deprecated and will raise in a future version. Use .view(...) instead.
return t.astype('int64')
The root cause is from this function:
def _pdtime2epoch(t):
if isinstance(t, pd.Series):
if isinstance(t.iloc[0], pd.Timestamp):
return t.astype('int64')
h = np.nanmax(t.values)
if h < 1e10: # handle s epochs
return (t * 1e9).astype('int64')
if h < 1e13: # handle ns epochs
return (t * 1e6).astype('int64')
if h < 1e16: # handle us epochs
return (t * 1e3).astype('int64')
return t.astype('int64')
return t
Can I ask how to fix it?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions