Skip to content

Commit 80ad31a

Browse files
cleaned up repo
1 parent c41567b commit 80ad31a

File tree

10 files changed

+6
-72
lines changed

10 files changed

+6
-72
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Local Environment
2+
.idea/
3+
my_local.db

.idea/.gitignore

Lines changed: 0 additions & 8 deletions
This file was deleted.

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.idea/inspectionProfiles/profiles_settings.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

.idea/misc.xml

Lines changed: 0 additions & 4 deletions
This file was deleted.

.idea/modules.xml

Lines changed: 0 additions & 8 deletions
This file was deleted.

.idea/simple_analytics_pipeline.iml

Lines changed: 0 additions & 8 deletions
This file was deleted.

.idea/vcs.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

main.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
import sqlite3
1+
import matplotlib.pyplot as plt
22
import pandas as pd
33
from pprint import pprint
4-
import matplotlib.pyplot as plt
4+
import sqlite3
55

66

77
def load_file_to_db(filename, table, conn):
88
# Read local csv file into pandas dataframe (dictionary object)
99
dataframe = pd.read_csv(filename)
1010
# Load pandas dataframe into database (create a table called "sample_table")
11-
dataframe.to_sql(table, con=conn, if_exists="replace")
11+
dataframe.to_sql(name=table, con=conn, if_exists="replace")
1212

1313

1414
def preview_data(table, conn):
@@ -48,4 +48,3 @@ def create_chart(sql, conn, x, y):
4848
"""
4949

5050
create_chart(sql=charts_sql, conn=conn, x="Variable_category", y="avg_val")
51-

my_local.db

-7.19 MB
Binary file not shown.

0 commit comments

Comments
 (0)