This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import codecs | |
import pandas as pd | |
recordFile="" | |
#UTF-8のCSVファイルを読む場合 | |
alldata = pd.read_csv(recordFile) | |
#Shift-JISのCSVファイルを読む場合 | |
with codecs.open(recordFile, "r", "Shift-JIS", "ignore") as file: | |
alldata = pd.read_table(file, delimiter=",") |