Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Phyton I have multiple folders in each folder I have one file CSV file. So I need to read all of those multiple folders with

Phyton

I have multiple folders in each folder I have one file CSV file. So I need to read all of those multiple folders with CSV files. Find the column name location and read each of the cells after it if it is 2 should be unknown, 3,4,5 should be yes and 6 should be perfect. And save the result to the new CSV file

image text in transcribed

And save the result to the new CSV file, the result should be like on the screenshot. And also new columns with the name of the folder it was open because now all of the folder contains file with the name location.

image text in transcribed

\begin{tabular}{|l|l|l|r|r|r|} \hline \multicolumn{2}{|c|}{ A } & B & \multicolumn{1}{c|}{ C } & D & E \\ \hline 1 & id & name & numbers & location & yeso \\ \hline 2 & 1 & Jon & 18 & 2 yes \\ \hline 3 & 2 & Ponk & 21 & 3 yes \\ \hline 4 & 3 & Dmytro & 19 & 4 yes \\ \hline 5 & 4 Jonatan & 20 & 5 yes \\ \hline 6 & 5 & Adry & 17 & 6 yes \\ \hline \end{tabular} \begin{tabular}{|r|r|l|} \hline location & \multicolumn{1}{|c|}{Ne location } \\ \hline 1 & 2 unknow \\ \hline 2 & 3 yes \\ \hline 3 & 4 yes \\ \hline 4 & 5 yes \\ \hline 5 & 6 nerfect \\ \hline \end{tabular}

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

Database Processing Fundamentals Design And Implementation

Authors: David M. Kroenke

5th Edition

B000CSIH5A, 978-0023668814

More Books

Students also viewed these Databases questions

Question

1. Explain how business strategy affects HR strategy.

Answered: 1 week ago