File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -767,9 +767,9 @@ def impute_missing_values(data):
767767 impute_values = \\ \n + {"var1": 0, "var2": "", "var3": 125.3}
768768 """
769769 self .score_code += (
770- f"\n \n { '' :4} # Specify downcasting behavior for pandas 2.x to avoid warnings\n " +
771- f"{ '' :4} if int(pd.__version__.split('.')[0]) == 2:\n { '' :8} pd.set_option('future.no_silent_downcasting', True)\n " +
772- f"{ '' :4} return data.replace(r'^\\ s*\\ .$', np.nan, regex=True).fillna(impute_values).infer_objects()\n "
770+ f"\n \n { '' :4} # Specify downcasting behavior for pandas 2.x to avoid warnings\n "
771+ + f"{ '' :4} if int(pd.__version__.split('.')[0]) == 2:\n { '' :8} pd.set_option('future.no_silent_downcasting', True)\n "
772+ + f"{ '' :4} return data.replace(r'^\\ s*\\ .$', np.nan, regex=True).fillna(impute_values).infer_objects()\n "
773773 )
774774 """
775775 # Specify downcasting behavior for pandas 2.x to avoid warnings
You can’t perform that action at this time.
0 commit comments