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

Transform on columnIndex with MultiIndex is broken in 1.4.0 #562

Open
vitaliknet opened this issue Dec 17, 2024 · 0 comments
Open

Transform on columnIndex with MultiIndex is broken in 1.4.0 #562

vitaliknet opened this issue Dec 17, 2024 · 0 comments

Comments

@vitaliknet
Copy link

It appears after 1.4.0 transform refactoring the following code no longer works.

dg_ind.transform([{'type': 'filter', 'columnIndex': 1, 'operator': 'in',
'value': ['A', 'AA']
}])

dg_ind.data.index
MultiIndex([('2024-12-16 00:00:00+00:00', 'A'),
('2024-12-16 00:00:00+00:00', 'AA'),
...
('2024-12-16 00:00:00+00:00', 'ZZZ')],
names=[('date', ''), ('ticker', '')], length=8965)

Something like below does not work either.

dg_ind.transform([{'type': 'filter', 'column': ('ticker', ''), 'operator': 'in',
'value': ['A', 'AA']
}])

@vitaliknet vitaliknet changed the title Transformer in columnIndex with MultiIndex is broken in 1.4.0 Transform on columnIndex with MultiIndex is broken in 1.4.0 Dec 17, 2024
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