Skip to content

Commit

Permalink
remove commented lines
Browse files Browse the repository at this point in the history
  • Loading branch information
dougbrn committed Sep 24, 2024
1 parent 1cde0c1 commit e8f805c
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/nested_pandas/nestedframe/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,6 @@ def __getitem__(self, item):
nested = item.split(".")[0]
col = ".".join(item.split(".")[1:])
return self[nested].nest.get_flat_series(col)

# If a nested column name is passed, return a flat series for that column
# flat series is chosen over list series for utility
# e.g. native ability to do something like ndf["nested.a"] + 3
# elif isinstance(item, str) and self._is_known_hierarchical_column(item):
# nested, col = item.split(".")
# return self[nested].nest.get_flat_series(col)
# Otherwise, do __getitem__ as normal
else:
return super().__getitem__(item)

Expand Down

0 comments on commit e8f805c

Please sign in to comment.