We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae659c0 commit 1d4dd04Copy full SHA for 1d4dd04
src/nested_pandas/nestedframe/core.py
@@ -779,10 +779,10 @@ def drop(
779
# axis 1 requires special handling for nested columns
780
if axis == 1 or columns is not None:
781
# label convergence
782
- if labels is not None and isinstance(labels, str):
+ if isinstance(labels, str):
783
labels = [labels]
784
elif columns is not None:
785
- labels = [columns] if isinstance(columns, str) else list(columns)
+ labels = [columns] if isinstance(columns, str) else columns
786
columns = None
787
axis = 1
788
nested_labels = [label for label in labels if self._is_known_hierarchical_column(label)]
0 commit comments