Skip to content

shadabshaukat/python-oracledb-pandas-demo

Repository files navigation

Statistical Analysis with Oracle Database, Pandas, Matplotlib and Seaborn

This project contains Python code that utilizes the Matplotlib and Seaborn libraries for data visualization.

Usage

This project requires the following libraries:

pandas
sqlalchemy<2.0
oracledb
matplotlib
seaborn

Run without GUI

# Clone the Github Repo
git clone https://github.com/shadabshaukat/python-oracledb-pandas-demo.git

cd python-oracledb-pandas-demo

# Set the environment variables to connect to Oracle Database
export ORACLE_USER=username
export ORACLE_PASSWORD=password
export ORACLE_DSN='(description= (retry_count=20)(retry_delay=3)(address=(protocol=tcps)(port=1521)(host=adb.ap-melbourne-1.oraclecloud.com))(connect_data=(service_name=*******_high.adb.oraclecloud.com))(security=(ssl_server_dn_match=yes)))'

# Build from Source
podman build -t oraclepandasdemo .

podman run -it \
-e ORACLE_USER=admin \
-e ORACLE_PASSWORD=YourPassword234#_ \
-e ORACLE_DSN="(description= (retry_count=20)(retry_delay=3)(address=(protocol=tcps)(port=1521)(host=adb.ap-melbourne-1.oraclecloud.com))(connect_data=(service_name=****_high.adb.oraclecloud.com))(security=(ssl_server_dn_match=yes)))" oraclepandasdemo


Run with GUI

# Install Dependencies
pip3 install -r requirements.txt

# Set the environment variables to connect to Oracle Database
export ORACLE_USER=username
export ORACLE_PASSWORD=password
export ORACLE_DSN='(description= (retry_count=20)(retry_delay=3)(address=(protocol=tcps)(port=1521)(host=adb.ap-melbourne-1.oraclecloud.com))(connect_data=(service_name=*******_high.adb.oraclecloud.com))(security=(ssl_server_dn_match=yes)))'

# Run
python3 pandas-charts.py

Visualization

Screen Shot 2023-03-13 at 5 26 25 pm

Screen Shot 2023-03-13 at 5 26 34 pm

Screen Shot 2023-03-13 at 5 26 43 pm

Screen Shot 2023-03-13 at 5 26 51 pm

Please feel free to contact me if you have any questions or comments about this project.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published