Skip to content

Commit 29ae648

Browse files
committed
Add FastAPI app with Docker, CI/CD, and linter
1 parent e50fa1d commit 29ae648

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/load.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff 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

2826
def 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
"""

src/saveFile.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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}")

0 commit comments

Comments
 (0)