Skip to content

Commit 5cdbd72

Browse files
committed
resolve a futurewarning for util summarization
1 parent dd3dc13 commit 5cdbd72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

feature_engine/utils/summarize_features.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def get_average(input_data, column_to_summarize, new_column_name):
6969
'''
7070
def get_max(input_data, column_to_summarize, new_column_name):
7171
# grouped_conversation_data = get_count_dataframe(chat_level_data, column_to_summarize)
72-
input_data[new_column_name] = input_data.groupby(["conversation_num"], sort=False)[column_to_summarize].transform(max)
72+
input_data[new_column_name] = input_data.groupby(["conversation_num"], sort=False)[column_to_summarize].transform("max")
7373
return(input_data[["conversation_num", new_column_name]].drop_duplicates())
7474

7575
'''
@@ -83,7 +83,7 @@ def get_max(input_data, column_to_summarize, new_column_name):
8383
'''
8484
def get_min(input_data, column_to_summarize, new_column_name):
8585
# grouped_conversation_data = get_count_dataframe(chat_level_data, column_to_summarize)
86-
input_data[new_column_name] = input_data.groupby(["conversation_num"], sort=False)[column_to_summarize].transform(min)
86+
input_data[new_column_name] = input_data.groupby(["conversation_num"], sort=False)[column_to_summarize].transform("min")
8787
return(input_data[["conversation_num", new_column_name]].drop_duplicates())
8888

8989
'''

0 commit comments

Comments
 (0)