Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions my_solution/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
## solution.ipynb
The Jupyter Notebook "solution.ipynb" will take the reviewer through my thought process.
It approaches the task in a step-by-step way and covers
* reading the csv file,
* writing cleaned up version to another csv file,
* adding bucket information,
* writing to database, and
* running the queries on the database.

## solution.py
In order to meet the criteria of production ready code, I am also including a python script "solution.py".
The script takes input csv file name, output csv file name, database name and table name as command line arguments.
For usage info and an example, please refer to header text of the file itself.
If called properly, the scipt is able to do the following
* reading the csv file,
* writing cleaned up version to another csv file,
* adding bucket information,
* writing to database, and

## sql_queries.txt
This text file contains the sql queries as instructed in the task.

## reviews.csv and exercise_data.db
Sample output files
Binary file added my_solution/exercise_database.db
Binary file not shown.
Loading