Skip to content

Commit ed69a7a

Browse files
authored
changed append to concat to avoid pandas warning (#329)
Signed-off-by: Amit Sharma <amit_sharma@live.com> Signed-off-by: Amit Sharma <amit_sharma@live.com>
1 parent 7a98a0e commit ed69a7a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dice_ml/data_interfaces/public_data_interface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ def get_ohe_min_max_normalized_data(self, query_instance):
479479
a dataframe, a list, or a list of dicts"""
480480
query_instance = self.prepare_query_instance(query_instance)
481481
ohe_base_df = self.prepare_df_for_ohe_encoding()
482-
temp = ohe_base_df.append(query_instance, ignore_index=True, sort=False)
482+
temp = pd.concat([ohe_base_df, query_instance], ignore_index=True, sort=False)
483483
temp = self.one_hot_encode_data(temp)
484484
temp = temp.tail(query_instance.shape[0]).reset_index(drop=True)
485485
# returns a pandas dataframe with all numeric values

0 commit comments

Comments
 (0)