Question: Write a python script that will match two excel files based on the State column and those matched rows as a list , send to

Write a python script that will match two excel files based on the State column and those matched rows as a list , send to those responsible people who assign to that state through email as an attachment.

Excel file : Project Information

Project_ID

State

Type

3344

ID

Food

4436

MN

Flower

5563

FL

Fry

6803

AZ

Food

7786

CO

River

8980

WA

Market

1019

ID

Movie

3345

ID

River

7903

MN

Market

4245

FL

Movie

1457

AZ

Food

3030

CO

Flower

8902

ID

Food

Email excel file:

Name

State

Email

Moon Lee

ID, MN

Moon.lee@outlook.com

Lee Song

FL, AZ

Lee.song@outlook.com

Quian Fan

CO, WA

Quian.Fan@outlook.com

Output should look like this: For instance, Moon Lee will get an email like below one

Email : moon.lee@outlook.com

Hello Moon Lee

Here is the project lists you are responsible for: ( Please see that attached file of your projects list)

Project_ID

State

Type

Name

3344

ID

Food

Moon Lee

4436

MN

Flower

Moon Lee

3345

ID

River

Moon Lee

7903

MN

Market

Moon Lee

8902

ID

Food

Moon Lee

Likewise, Lee Song and Quian Fan will get their projects lists.

Thank you!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!