# Write a method to read data from csv file.
import os
import pandas
# Read from file
def read_file(file_name,path):
os.chdir(path)
df = pd.read_csv(file_name,error_bad_lines=False)
return df
import os
import pandas
# Read from file
def read_file(file_name,path):
os.chdir(path)
df = pd.read_csv(file_name,error_bad_lines=False)
return df
No comments:
Post a Comment