import pandas as pd
import os
path=r"C:\Users\berid\OneDrive\Desktop\mydata\covid19 South Korea\\"
for file in os.listdir(path):
print(file)
output:
I want to create dataframes with the same names as csv files.
for file in os.listdir(path):
name=file.split(".csv")[0]
name=pd.read_csv(path+file)
This creates dataframe with the name "name". I want dataframes names to be "Case","PatientInfo","Policy",etc.
