"convert all excel files in folder to csv python" Code Answer's
You're definitely familiar with the best coding language Python that developers use to develop their projects and they get all their queries like "convert all excel files in folder to csv python" answered properly. Developers are finding an appropriate answer about convert all excel files in folder to csv python related to the Python coding language. By visiting this online portal developers get answers concerning Python codes question like convert all excel files in folder to csv python. Enter your desired code related query in the search bar and get every piece of information about Python code related question on convert all excel files in folder to csv python.
convert all excel files in folder to csv python
import pandas as pd
import os
import glob
source="D:\\source\\"
dest='D:\\dest\\'
os.chdir(source)
for file in glob.glob("*.xls"):
df = pd.read_excel(file)
df.to_csv(dest+file+'.csv', index=False)
os.remove(file)
for file in glob.glob("*.xlsx"):
df = pd.read_excel(file)
df.to_csv(dest+file+'.csv', index=False)
os.remove(file)
Source: www.edureka.co
All those coders who are working on the Python based application and are stuck on convert all excel files in folder to csv python can get a collection of related answers to their query. Programmers need to enter their query on convert all excel files in folder to csv python related to Python code and they'll get their ambiguities clear immediately. On our webpage, there are tutorials about convert all excel files in folder to csv python for the programmers working on Python code while coding their module. Coders are also allowed to rectify already present answers of convert all excel files in folder to csv python while working on the Python language code. Developers can add up suggestions if they deem fit any other answer relating to "convert all excel files in folder to csv python". Visit this developer's friendly online web community, CodeProZone, and get your queries like convert all excel files in folder to csv python resolved professionally and stay updated to the latest Python updates.