Skip to content

Commit a6b134a

Browse files
committed
pre-commit run
1 parent 3698547 commit a6b134a

File tree

1 file changed

+9
-5
lines changed
  • src/nested_pandas/nestedframe

1 file changed

+9
-5
lines changed

src/nested_pandas/nestedframe/core.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -925,11 +925,15 @@ def reduce(self, func, *args, infer_nesting=True, **kwargs) -> NestedFrame: # t
925925

926926
if infer_nesting:
927927
# find potential nested structures from columns
928-
nested_cols = list(np.unique(
929-
[column.split(".", 1)[0]
930-
for column in results_nf.columns
931-
if isinstance(column, str) and "." in column]
932-
))
928+
nested_cols = list(
929+
np.unique(
930+
[
931+
column.split(".", 1)[0]
932+
for column in results_nf.columns
933+
if isinstance(column, str) and "." in column
934+
]
935+
)
936+
)
933937

934938
# pack results into nested structures
935939
for layer in nested_cols:

0 commit comments

Comments
 (0)