Skip to content

Commit

Permalink
Update src/nested_pandas/series/ext_array.py
Browse files Browse the repository at this point in the history
Co-authored-by: Wilson Beebe <[email protected]>
  • Loading branch information
hombit and wilsonbb authored Nov 6, 2024
1 parent 6a2bd1b commit b652f7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nested_pandas/series/ext_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ def num_chunks(self) -> int:
def get_list_index(self) -> np.ndarray:
"""Keys mapping values to lists"""
if len(self) == 0:
# Since we have no list offests, return an empty array
# Since we have no list offsets, return an empty array
return np.array([], dtype=int)
list_index = np.arange(len(self))
return np.repeat(list_index, np.diff(self.list_offsets))
Expand Down

0 comments on commit b652f7a

Please sign in to comment.