pandasからpolarsへの書き換え
CSVの読み込みpandas
import pandas as pdfile_path = 'example.csv'encoding = 'utf-8' # 文字コードdelimiter = ',' # デリミタdf = pd.read_csv(file_path, encoding=encoding, delimiter=delimiter, error_bad_lines=False)print(df)
polars
import polars as pl