Skip to content

Commit 21096fa

Browse files
committed
add optimization comment
1 parent ca52c53 commit 21096fa

File tree

1 file changed

+3
-0
lines changed
  • src/nested_pandas/nestedframe

1 file changed

+3
-0
lines changed

src/nested_pandas/nestedframe/core.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,10 @@ def sort_values(
10191019
key=key,
10201020
inplace=False,
10211021
)
1022+
1023+
# Could be optimized, as number of rows doesn't change
10221024
new_df = self._set_filtered_flat_df(nest_name=target, flat_df=target_flat)
1025+
10231026
if inplace:
10241027
self._update_inplace(new_df)
10251028
return None

0 commit comments

Comments
 (0)