From b652f7a46a6f378189951fccde2037d303ebc2c9 Mon Sep 17 00:00:00 2001 From: Konstantin Malanchev Date: Wed, 6 Nov 2024 13:34:34 -0500 Subject: [PATCH] Update src/nested_pandas/series/ext_array.py Co-authored-by: Wilson Beebe --- src/nested_pandas/series/ext_array.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nested_pandas/series/ext_array.py b/src/nested_pandas/series/ext_array.py index 644aa33..f63ca8b 100644 --- a/src/nested_pandas/series/ext_array.py +++ b/src/nested_pandas/series/ext_array.py @@ -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))