我正在尝试使用 pandas 导入 CSV 文件,但出现错误。 (看图片)
I'm trying to import CSV file using pandas, But I'm getting Error. (look at pic)
What am I doing wrong?? I'm trying to import a csv file using pandas, i either get an error stating file can't be found or a unicodeerror message?
尝试:
import pandas as pd
import string
import io
uploaded = files.upload()
df = pd.read_csv(io.BytesIO(uploaded['pokemon.csv']))
df
不介意csv文件名
只需放置文件而不是 'pokemon.csv'
您应该在 Windows 上转义反斜杠 - \U 被解释为字符串中的 unicode 字符指令。
尝试:
C:\Users\... etc.
What am I doing wrong?? I'm trying to import a csv file using pandas, i either get an error stating file can't be found or a unicodeerror message?
尝试:
import pandas as pd
import string
import io
uploaded = files.upload()
df = pd.read_csv(io.BytesIO(uploaded['pokemon.csv']))
df
不介意csv文件名 只需放置文件而不是 'pokemon.csv'
您应该在 Windows 上转义反斜杠 - \U 被解释为字符串中的 unicode 字符指令。
尝试:
C:\Users\... etc.