Closed djkamm closed 2 years ago
When attempting to run the code:
buy_per_min.timestamp = buy_per_min.timestamp.add(utc_offset).astype(int)
I get the error TypeError: cannot astype a datetimelike from [datetime64[ns]] to [int32]
Help!
I figured it out. Replace astype(int) with astype(np.int64)
Glad to hear.
When attempting to run the code:
buy_per_min.timestamp = buy_per_min.timestamp.add(utc_offset).astype(int)
I get the error TypeError: cannot astype a datetimelike from [datetime64[ns]] to [int32]
Help!