We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
This creates an IndexError.
idx = MultiIndex.from_tuples([(1, 'one'), (1, 'two'), (2, 'one'), (2, 'two')]) df = DataFrame([[1, 'a', 1], [2, 'b', 1], [3, 'c', 1], [4, 'd', 1]], columns=['A', 'B', 'C'], index=idx) wp = Panel({'i1': df, 'i2': df}) wp.loc['i1', (1, 'one'), 'A'] = np.nan
Looks like its just with a Panel with a MultiIndex for one the axes (raises when following take_split_path in core.indexing._setitem_with_indexer)
take_split_path
core.indexing._setitem_with_indexer
In [19]: df.index = range(4) In [20]: df Out[20]: A B C 0 1 a 1 1 2 b 1 2 3 c 1 3 4 d 1 [4 rows x 3 columns] In [21]: wp = pd.Panel({'i1': df, 'i2': df}) In [22]: wp.loc['i1', 1, 'A'] = 3 In [23]: wp.loc['i1', 1, 'A'] Out[23]: 3 # correct
The text was updated successfully, but these errors were encountered:
closing as Panels are deprecated
Sorry, something went wrong.
No branches or pull requests
This creates an IndexError.
Looks like its just with a Panel with a MultiIndex for one the axes (raises when following
take_split_path
incore.indexing._setitem_with_indexer
)The text was updated successfully, but these errors were encountered: