Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,7 +29,7 @@ database_file_path = "data_science_100k.db"
|
|
| 29 |
# SQLite only requires the path to the database file
|
| 30 |
engine = create_engine(f"sqlite:///{database_file_path}")
|
| 31 |
file_url = "./Struct Data_Data Science 100K.csv"
|
| 32 |
-
os.makedirs(os.path.dirname(database_file_path), exist_ok=True)
|
| 33 |
|
| 34 |
df = pd.read_csv(file_url)
|
| 35 |
df.to_sql("DataScience100k", con=engine, if_exists="replace", index=False)
|
|
|
|
| 29 |
# SQLite only requires the path to the database file
|
| 30 |
engine = create_engine(f"sqlite:///{database_file_path}")
|
| 31 |
file_url = "./Struct Data_Data Science 100K.csv"
|
| 32 |
+
# os.makedirs(os.path.dirname(database_file_path), exist_ok=True)
|
| 33 |
|
| 34 |
df = pd.read_csv(file_url)
|
| 35 |
df.to_sql("DataScience100k", con=engine, if_exists="replace", index=False)
|