The following code exporting a dataframe with a timeseries index with np.datetime64 type
import numpy as np import pandas as pd timestamps = pd.date_range(np.datetime64('2013-01-01 11:00:00.123456'), periods=5, freq='123U') dataframe = pd.DataFrame(np.random.randn(len(timestamps)), index=timestamps) dataframe.to_stata('out')
throws a
ValueError: Data type datetime64[ns] not currently understood. Please report an error to the developers.
It would be very nice if np.datetime64 (and thus pd.Timestamp as well) would be supported here.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4