Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I have a folder which contain three excel files and each excel file looks like this: Country City Code Price India Mumbai 4 2 3

I have a folder which contain three excel files and each excel file looks like this:
Country City Code Price
India Mumbai 423100
India Mumbai 545200
India Mumbai 664300
India Mumbai 667400
India Mumbai 443500
India Mumbai 221600
Country City Code Price
China Beijing 423250
China Beijing 545289
China Beijing 664310
China Beijing 667420
China Beijing 443550
China Bejing 221606
I need to insert a new row after code 664 and the price will be 350. So new table will look like this:
Country City Code Price
India Mumbai 423100
India Mumbai 545200
India Mumbai 664300
India Mumbai 665350
India Mumbai 667400
India Mumbai 443500
India Mumbai 221600
Country City Code Price
China Beijing 423250
China Beijing 545289
China Beijing 664310
China Beijing 665350
China Beijing 667420
China Beijing 443550
China Bejing 221606
So, all the excel files should be updated like that at the same time in one python script, because need to imagine there can be multiple excel files where we need to insert row in certain location. Could you please let me know how to do it in python jupyter notebook.I have a folder which contain three excel files and each excel file looks like this:
I need to insert a new row after code 664 and the price will be 350. So new table will look like this:
So, all the excel files should be updated like that at the same time in one python script, because need to
imagine there can be multiple excel files where we need to insert row in certain location. Could you
please let me know how to do it in python jypyter notebook.|
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Secrets Of Analytical Leaders Insights From Information Insiders

Authors: Wayne Eckerson

1st Edition

1935504347, 9781935504344

More Books

Students also viewed these Databases questions

Question

1. How do most insects respire ?

Answered: 1 week ago