Skip to content

Commit

Permalink
utils.py create; functions to load/save dict of df + datetime index s…
Browse files Browse the repository at this point in the history
…et; data in data/processed folder
  • Loading branch information
timothyyu committed Feb 7, 2019
1 parent 0b199b4 commit c0d56dc
Show file tree
Hide file tree
Showing 12 changed files with 507 additions and 25 deletions.
Binary file modified data/interim/clean_data.xlsx
Binary file not shown.
Binary file not shown.
Binary file modified data/interim/clean_data_index.xlsx
Binary file not shown.
Binary file added data/processed/clean_data.xlsx
Binary file not shown.
Binary file added data/processed/clean_data_future.xlsx
Binary file not shown.
Binary file added data/processed/clean_data_index.xlsx
Binary file not shown.
12 changes: 10 additions & 2 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
# Changelog

2019-02-06
## 2019-02-07
- Refactors from `1_data_clean_load_datetime.ipynb` notebook:
- `utils.py` for `frames_to_excel(),dictmap_load(), dictmap_datetime()` functions in `wsae_lstm` source/root folder
- Functions to load and save a dictionary of dataframes to and from disk
- `clean_data.py` updated with function imports from `utils.py`
- `frames_to_excel()` can now accept optional `key_order` kwarg
- Minor syntax/variable name reference consistency changes
- Data in `data/processed` has date column in datetime object format

- clean_dataset.py in `wsae_lstm` folder to clean raw dataset, output stored in `data/interim` folder (refactored from `notebooks\0_data_clean_load.ipynb`)
## 2019-02-06
- clean_dataset.py in `wsae_lstm` folder to clean raw dataset, output stored in `data/interim` folder (refactored from `notebooks\0_data_clean_load.ipynb` notebook)
- `readme.md` update with repository structure section & other minor clarification changes

4 changes: 2 additions & 2 deletions notebooks/0_data_clean_load.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -922,9 +922,9 @@
"'djia index future data',\n",
"]\n",
"list_of_tuples = [(key, dict_dataframes[key]) for key in key_order]\n",
"dict_dataframes_futures = OrderedDict(list_of_tuples)\n",
"dict_dataframes_future = OrderedDict(list_of_tuples)\n",
"\n",
"frames_to_excel(dict_dataframes_futures,\"../data/interim/clean_data_futures.xlsx\")"
"frames_to_excel(dict_dataframes_future,\"../data/interim/clean_data_future.xlsx\")"
]
},
{
Expand Down
Loading

0 comments on commit c0d56dc

Please sign in to comment.