|
4 | 4 | import plotly.express as px
|
5 | 5 |
|
6 | 6 | # storing the dataset
|
7 | | -book_relative_path = input("Enter first dataset") |
8 | | -book_prices = input("Enter second dataset") |
| 7 | +data1 = input("Enter first dataset") |
| 8 | +data2 = input("Enter second dataset") |
9 | 9 |
|
10 | 10 | # reading the data
|
11 | | -data_prices = pd.read_excel(book_prices) |
12 | | -data_home_1 = pd.read_excel(book_relative_path) |
| 11 | +data_read_1 = pd.read_excel(data1) |
| 12 | +data_read_2 = pd.read_excel(data2) |
13 | 13 |
|
14 | 14 | #print(df_prices, df_home_1)
|
15 | 15 |
|
16 | | -item = input("What is the basis of merging? ") |
17 | | -data_total = data_home_1.merge(data_prices, on=item) |
| 16 | +reference = input("What is the basis of merging? ") |
| 17 | +data_total = data_read_2.merge(data_read_1, on=reference) |
18 | 18 |
|
19 | 19 |
|
20 | 20 | #print(df_total)
|
|
0 commit comments