Open ChristofKaufmann opened 2 months ago
Thanks for the report! I confirm this bug exists in the main branch. You are correct, this is a bug and not a feature request since the DataFrame is successfully saved using to_parquet
but is not readable using read_parquet
. PRs to fix are welcome!
take
Pandas version checks
[X] I have checked that this issue has not already been reported.
[X] I have confirmed this bug exists on the latest version of pandas.
[ ] I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Issue Description
read_parquet
raises an exception:ValueError: Cannot convert from timedelta64[ns] to timedelta64. Supported resolutions are 's', 'ms', 'us', 'ns'
. Traceback:Now, the odd thing that makes me believe this might be a bug (and not a feature request) is that the code works with either
df = pd.DataFrame(data=td)
or evendf = pd.DataFrame(index=td)
.BTW:
df.to_parquet('test.parquet', engine='fastparquet')
fails with any of the three DataFrames.Expected Behavior
Using
td
forcolumns
should work the same way as using it forindex
.Installed Versions