May-13-2021, 01:37 AM
Hi Everyone,
I try 3 different ways to read csv data and only 1 works.
Can you please help to fix the not working code?
Thank you so much.
HHC
I try 3 different ways to read csv data and only 1 works.
Can you please help to fix the not working code?
Thank you so much.
HHC
#Working
import pandas as pd
df1 = pd.read_csv (r'C:\temp\text.csv')
print(df1)
#Not working
with open("C:\temp\text.csv", "r") as text:
print(text)
#Not working
f = open("C:\temp\text.csv", "r")
print(f.read())
