Skip to content

Commit 3d3b6e0

Browse files
authored
use _is_nested_column to improve performance (#379)
1 parent cf288d7 commit 3d3b6e0

File tree

1 file changed

+1
-1
lines changed
  • src/nested_pandas/nestedframe

1 file changed

+1
-1
lines changed

src/nested_pandas/nestedframe/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def __getitem__(self, item):
234234
return super().__getitem__(item)
235235

236236
def _getitem_str(self, item):
237-
if item in self.nested_columns:
237+
if self._is_nested_column(item):
238238
return NestedSeries(super().__getitem__(item))
239239
# Preempt the nested check if the item is a base column, with or without
240240
# dots and backticks.

0 commit comments

Comments
 (0)