database_constructor.py
: Python Script for Generating JSON and CSV FilesGraph_Visuals.ipynb
: Jupyter Notebook for Visualizing Trends in Data
- Numpy
- Pandas
- Plotly
- Scikit-Learn
- Scipy
- Statsmodels
- PyGithub
$ sudo pip3 install numpy pandas scikit-learn scipy statsmodels PyGithub
database_constructor.py
or database_constructor_v2.py
Parameters:
-u
: username
-p
: password
-oc
: path to a reference table for clones
-ov
: path to a reference table for views
Output:
- outputs json and csv files for current data pulled from github
- outputs csv file that builds upon reference file using current data
Note: v2 uses PyGithub, which grabs the json data using requests rather than curl
Graph_Visuals.ipynb
- Initiate Jupyter Notebook environment in terminal
- Click on the file within the UI that pops up in a browser
- Edit the
viewsfile
andclonesfile
variable to be the paths to the csv files that you want to illustrate via plotly.
- Plot of actual data
- Plot of Simple Regression line
- Plot of LOWESS line
- Ability to zoom in and zoom out on certain parts of data
- Ability to download a png image of the graph to use elsewhere