1
0

pandasでcsvを読み込んだらErrorが起きた

Last updated at Posted at 2024-03-10
import pandas as pd

def read_parameter(pflepath, mflepath):
    # CSVファイルを読み込む
    print(pflepath)
    pdf = pd.read_csv(r"C:\Users\kent\Documents\Soler\para.csv", encoding="cp932")
    print(mflepath)
    mdf = pd.read_csv(r"C:\Users\kent\Documents\Soler\measurement.csv", encoding="cp932")

cpで試してもダメだった

image.png

pdf = pd.read_csv(pflepath, encoding="shift-jis")
pdf = pd.read_csv(pflepath, encoding="cp932")

参考にしたけどダメだった

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0