We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Minimal repro:
def test_resample_multiindex(lmdb_version_store_v1): lib = lmdb_version_store_v1 sym = "test_resample_multiindex" df = pd.DataFrame( data={ "a": [2, 3], "b": [4, 5], }, index=pd.MultiIndex.from_arrays([[pd.Timestamp("2024-01-01"), pd.Timestamp("2024-01-02")], [0, 1]], names=["datetime", "sequence number"]) ) df.resample("D").agg({"a sum": ("a", "sum"), "b mean": ("b", "mean")}) lib.write(sym, df) q = QueryBuilder() q = q.resample("D").agg({"a sum": ("a", "sum"), "b mean": ("b", "mean")}) received_df = lib.read(sym, query_builder=q).data print(f"\n{received_df}") # prints a sum datetime 2024-01-01 4.0 2 2024-01-02 5.0 3
i.e. the b mean column is in the place of the second-level of the index, and has lost its name
b mean
The text was updated successfully, but these errors were encountered:
vasil-pashov
No branches or pull requests
Minimal repro:
i.e. the
b mean
column is in the place of the second-level of the index, and has lost its nameThe text was updated successfully, but these errors were encountered: