Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to read all columns but the one use for partition #49

Open
sdementen opened this issue Nov 30, 2020 · 0 comments
Open

how to read all columns but the one use for partition #49

sdementen opened this issue Nov 30, 2020 · 0 comments

Comments

@sdementen
Copy link

I am storing timeseries dataframes (index=datatimeindex, multiple columns of data).
I add a column "year" with the df.index.year.
I write to the collection with collection.write(item_name, df, overwrite=True, partition_on=["year"]).
When I read it back, I use item = collection.item(item_name, filters=[("year", "==", year)]) and I would like to avoid reading (for performance) the "year" column (as it is only used for partitioning). I can read the columns in item.data.columns and remove from this Index the "year". But then, in the item.to_pandas(), I cannot specify the columns to read from.
Any way to do what I want to do properly ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant