You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Value error raised when looking at a column in a partitioned parquet file. #3170
Having used dask to read a bunch of csv files and write them as a partitioned parquet file, I'm now having issues reading the parquet file with dask.
The following works as expected: ddf = dd.load_parquet('file.parquet') ddf.head()
However, when I try to work on a single column a ValueError is thrown:
ddf.A.head()
ValueError: Length mismatch: Expected axis has 2 elements, new values have 1 elements
The issue can be resolved by resetting the index, but that doesn't seem ideal.
Using the following versions: dask==0.17.0, fastparquet==0.1.4, pandas==0.22.0
@jcrist@mrocklin , is dask.dataframe.optimize doing the right thing here? I think there is a bug in fastparquet where you cannot do pf.to_pandas(columns=['a']) where 'a' is a column coming from directory names rather than data files; but it's not totally clear to me what should happen in that case.
Activity
martindurant commentedon Feb 15, 2018
Nice test case.
This looks like a duplicate of #3168
martindurant commentedon Feb 15, 2018
@jcrist @mrocklin , is dask.dataframe.optimize doing the right thing here? I think there is a bug in fastparquet where you cannot do
pf.to_pandas(columns=['a'])where'a'is a column coming from directory names rather than data files; but it's not totally clear to me what should happen in that case.