Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added Spreadsheet_Automation/PriceBook.xlsx
Binary file not shown.
Binary file added Spreadsheet_Automation/Purchases - Home B.xlsx
Binary file not shown.
36 changes: 36 additions & 0 deletions Spreadsheet_Automation/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# <b>Spreadsheet Automation</b>

[![forthebadge](https://forthebadge.com/images/badges/made-with-python.svg)](https://forthebadge.com)

## Spreadsheet Automation Functionalities : 🚀

- First upload two datasets
- The script will we compare the two datasets
- The output will be a pie chart

## Spreadsheet Automation Instructions: 👨🏻‍💻

### Step 1:

Open Termnial 💻

### Step 2:

Locate to the directory where python file is located 📂

### Step 3:

Run the command: python script.py/python3 script.py 🧐

### Step 4:

Sit back and Relax. Let the Script do the Job. ☕

### Requirements

- pandas
- plotly

## Author

Amit Kumar Mishra
25 changes: 25 additions & 0 deletions Spreadsheet_Automation/script.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# importing libraries

import pandas as pd
import plotly.express as px

# storing the dataset
data1 = input("Enter first dataset")
data2 = input("Enter second dataset")

# reading the data
data_read_1 = pd.read_excel(data1)
data_read_2 = pd.read_excel(data2)

#print​(df_prices, df_home_1)

reference = input("What is the basis of merging? ")
data_total = data_read_2.merge(data_read_1, on=reference)


#print​(df_total)
criteria_1=input("Enter criteria 1")
criteria_2=input("Enter criteria 2")
fig = px.pie(data_total[[criteria_1, criteria_2]], values=criteria_2, names=criteria_1)
fig.show()