automate you csv files to presenation as model plot as easy way in command line
238
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 --file train.csv --distr distplot --hue Sex --column1 Age --column2 Sex --flask flask
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 -
http://127.0.0.1:5000/
http://172.17.0.2:5000/

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 -
http://127.0.0.1:5000/
http://172.17.0.2:5000/

python3 gellany_plots.py --file train.csv --distr boxplot --column1 Survived --column2 Age --hue Sex

docker deploy
#/home/go/ = your path your already download git folder in it
docker image build -t gellany_plots /home/go/gellany_plots
docker run --publish 5000:5000 -it -d gellany_plots
docker ps
docker exec -it 83ea954d9b5a python3 gellany_plots.py --file train.csv --distr boxplot --column1 Survived --column2 Age --hue Sex --flask flask
http://0.0.0.0:5000/
http://172.17.0.2:5000/
docker stop f77d93571bcc
docker ps
docker pull direct
#/home/go/ = your path your already download git folder in it
docker pull gellany/gellany_plots
docker run --publish 5000:5000 -it -d gellany/gellany_plots
docker ps
docker exec -it 83ea954d9b5a python3 gellany_plots.py --file train.csv --distr boxplot --column1 Survived --column2 Age --hue Sex --flask flask
docker stop f77d93571bcc
http://0.0.0.0:8000/
http://0.0.0.0:8000/polls
docker push
docker login --username username
docker image list
docker tag a2ac10640f5b gellany/gellany_plots
docker push gellany/gellany_plots:latest
docker image list removed
docker images rm
docker image remove all
docker image list|awk '{print $3}'|xargs -I z docker rmi --force z
docker image list
docker system Remove unused data
docker system prune --force
Content type
Image
Digest
Size
557.2 MB
Last updated
over 4 years ago
docker pull gellany/gellany_plots