File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -19,10 +19,8 @@ def summary_stats(df):
1919 """Print basic info and stats"""
2020 print (df .info ())
2121 print ("\n --- Describe Numerical ---\n " , df .describe ())
22- print (
23- "\n --- Describe Categorical ---\n " ,
24- df .select_dtypes (include = 'object' ).describe ()
25- )
22+ print ("\n --- Describe Categorical ---\n " )
23+ print (df .select_dtypes (include = 'object' ).describe ())
2624
2725
2826def logarithmic_numerical_distribution (
@@ -32,7 +30,6 @@ def logarithmic_numerical_distribution(
3230 if columns is None :
3331 columns = ['Amount' , 'Value' , 'FraudResult' ]
3432
35-
3633 """
3734 Plot log-scale histograms for positive and negative values of specified columns.
3835 """
Original file line number Diff line number Diff line change @@ -33,6 +33,9 @@ def save_dataframe_to_csv(df, filename):
3333 filename (str): The name of the CSV file (without extension).
3434 """
3535 df = convert_tz_aware_to_naive (df )
36- full_path = f"{ output_path } /{ filename } .csv"
36+ full_path = (
37+ f"{ output_path } /"
38+ f"{ filename } .csv"
39+ )
3740 df .to_csv (full_path , index = False )
3841 print (f"Data saved to { full_path } " )
You can’t perform that action at this time.
0 commit comments