-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
[ArrayManager] TST: run (+fix/skip) pandas/tests/series/indexing tests #40326
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
Changes from all commits
44f5ae8
3e07133
182af4b
9143b25
55178c0
bef7c35
6afe8bf
73e2286
8815fae
586c044
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -202,7 +202,7 @@ def get_dtypes(self): | |
def __repr__(self) -> str: | ||
output = type(self).__name__ | ||
output += f"\nIndex: {self._axes[0]}" | ||
if self.ndim == 1: | ||
if self.ndim == 2: | ||
output += f"\nColumns: {self._axes[1]}" | ||
output += f"\n{len(self.arrays)} arrays:" | ||
for arr in self.arrays: | ||
|
@@ -1143,7 +1143,13 @@ def __init__( | |
def _verify_integrity(self) -> None: | ||
(n_rows,) = self.shape | ||
assert len(self.arrays) == 1 | ||
assert len(self.arrays[0]) == n_rows | ||
arr = self.arrays[0] | ||
assert len(arr) == n_rows | ||
if not arr.ndim == 1: | ||
raise ValueError( | ||
"Passed array should be 1-dimensional, got array with " | ||
f"{arr.ndim} dimensions instead." | ||
) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can you share any of this with the parent classes' _verify_integrity? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not really, I think. The parent version assumes the object is 2D, so won't work for SingleArrayManager. |
||
|
||
@staticmethod | ||
def _normalize_axis(axis): | ||
|
Uh oh!
There was an error while loading. Please reload this page.