UBC-MDS / group29

Project Repo for Group 29 for DSCI 522
MIT License
0 stars 9 forks source link

Script 4 - performs some statistical or machine learning analysis #33

Closed sukh2929 closed 3 years ago

rachelywong commented 3 years ago

Just completed my section of script 4 and am able to pass it to @sukh2929 now to do her part and then @wiwang can take over when Sukhdeep finishes.

I'm just waiting for the PR from @jraza19 for script 2 to be accepted and then I can pull and request a PR for everyone for script 4.

rachelywong commented 3 years ago

@wiwang

Script 4:

wiwang commented 3 years ago

How to save table into png file: https://stackoverflow.com/questions/35634238/how-to-save-a-pandas-dataframe-table-as-a-png

'import matplotlib.pyplot as plt import pandas as pd from pandas.table.plotting import table # EDIT: see deprecation warnings below

ax = plt.subplot(111, frame_on=False) # no visible frame ax.xaxis.set_visible(False) # hide the x axis ax.yaxis.set_visible(False) # hide the y axis

table(ax, df) # where df is your data frame

plt.savefig('mytable.png')'

sukh2929 commented 3 years ago

completed my section of the script 4 and @wiwang can take work on this now

wiwang commented 3 years ago

now I merged script 4 and its jupyter notebook into main repository, all generated csv files and graphic images are kept under reports/figures folder.