Skip to content

Commit 573b440

Browse files
Merge pull request avinashkranjan#502 from Amit366/Amit
Spreadsheet Automation
2 parents 10a7f4f + a73c333 commit 573b440

File tree

4 files changed

+61
-0
lines changed

4 files changed

+61
-0
lines changed
9.67 KB
Binary file not shown.
9.91 KB
Binary file not shown.

Spreadsheet_Automation/Readme.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# <b>Spreadsheet Automation</b>
2+
3+
[![forthebadge](https://forthebadge.com/images/badges/made-with-python.svg)](https://forthebadge.com)
4+
5+
## Spreadsheet Automation Functionalities : 🚀
6+
7+
- First upload two datasets
8+
- The script will we compare the two datasets
9+
- The output will be a pie chart
10+
11+
## Spreadsheet Automation Instructions: 👨🏻‍💻
12+
13+
### Step 1:
14+
15+
Open Termnial 💻
16+
17+
### Step 2:
18+
19+
Locate to the directory where python file is located 📂
20+
21+
### Step 3:
22+
23+
Run the command: python script.py/python3 script.py 🧐
24+
25+
### Step 4:
26+
27+
Sit back and Relax. Let the Script do the Job. ☕
28+
29+
### Requirements
30+
31+
- pandas
32+
- plotly
33+
34+
## Author
35+
36+
Amit Kumar Mishra

Spreadsheet_Automation/script.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# importing libraries
2+
3+
import pandas as pd
4+
import plotly.express as px
5+
6+
# storing the dataset
7+
data1 = input("Enter first dataset")
8+
data2 = input("Enter second dataset")
9+
10+
# reading the data
11+
data_read_1 = pd.read_excel(data1)
12+
data_read_2 = pd.read_excel(data2)
13+
14+
#print​(df_prices, df_home_1)
15+
16+
reference = input("What is the basis of merging? ")
17+
data_total = data_read_2.merge(data_read_1, on=reference)
18+
19+
20+
#print​(df_total)
21+
criteria_1=input("Enter criteria 1")
22+
criteria_2=input("Enter criteria 2")
23+
fig = px.pie(data_total[[criteria_1, criteria_2]], values=criteria_2, names=criteria_1)
24+
fig.show()
25+

0 commit comments

Comments
 (0)