automate you csv files to presenation as model plot as easy way in command line
git clone https://github.com/gellanyhassan0/gellany_plots.git
cd gellany_plots
pip install -r requirements.txt
python3 gellany_plots.py
python3 gellany_plots.py --file train.csv
python3 gellany_plots.py --file train.csv --distr multi
python3 gellany_plots.py --file train.csv --distr single
python3 gellany_plots.py --file train.csv --distr double
python3 gellany_plots.py --file train.csv --distr single --transformed Fare
python3 gellany_plots.py --file train.csv --distr double --column1 'Age' --column2 'Sex'
python3 gellany_plots.py --file train.csv --distr pie_binary --column1 Survived
python3 gellany_plots.py --file train.csv --distr countplot --column1 Pclass
python3 gellany_plots.py --file train.csv --distr boxplot --column1 Pclass
python3 gellany_plots.py --file train.csv --distr distplot --column1 Pclass
python3 gellany_plots.py --file train.csv --distr count_multi --column1 Survived
python3 gellany_plots.py --file train.csv --distr boxplot --column1 Survived --column2 Age --hue Sex
python3 gellany_plots.py --file train.csv --distr corr
python3 gellany_plots.py --file train.csv --distr kdeplot --column1 Pclass
python3 gellany_plots.py --file train.csv --distr boxplot --hue Survived --column1 Age --column2 Sex
python3 gellany_plots.py -h
python3 gellany_plots.py -h
usage: gellany_plots.py [-h] [--file FILE] [--distribution DISTRIBUTION] [--transformed TRANSFORMED] [--column1 COLUMN1]
[--column2 COLUMN2] [--hue HUE]
optional arguments:
-h, --help show this help message and exit
--file FILE
--distribution DISTRIBUTION
--transformed TRANSFORMED
--column1 COLUMN1
--column2 COLUMN2
--hue HUE
python3 gellany_plots.py --file train.csv --distr boxplot --hue Sex --column1 Age --column2 Sex --flask flask
train.csv
- Serving Flask app "gellany_plots" (lazy loading)
- Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
- Debug mode: off
- Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)
/home/go/gellany_plots/gellany_plots.py:205: UserWarning: Starting a Matplotlib GUI outside of the main thread will likely fail.
fig,ax=plt.subplots(figsize=(6,6))
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
127.0.0.1 - - [16/Jun/2022 07:52:56] "GET / HTTP/1.1" 200 -
python3 gellany_plots.py --file train.csv --distr distplot --hue Sex --column1 Age --column2 Sex --flask flask
train.csv
- Serving Flask app "gellany_plots" (lazy loading)
- Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
- Debug mode: off
Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)
/home/go/gellany_plots/gellany_plots.py:205: UserWarning: Starting a Matplotlib GUI outside of the main thread will likely fail.
fig,ax=plt.subplots(figsize=(6,6))
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
/usr/local/lib/python3.9/dist-packages/seaborn/distributions.py:2619: FutureWarning: distplot
is a deprecated function and will be removed in a future version. Please adapt your code to use either displot
(a figure-level function with similar flexibility) or histplot
(an axes-level function for histograms).
warnings.warn(msg, FutureWarning)
127.0.0.1 - - [16/Jun/2022 08:17:25] "GET / HTTP/1.1" 200 -
python3 gellany_plots.py --file train.csv --distr boxplot --column1 Survived --column2 Age --hue Sex