Код: Выделить всё
import pandas as pd
import polars as pl
kw_path = 'ses_Sestra_keywords.csv'
df_pd = pd.read_csv(filepath_or_buffer=kw_path, sep=";", header=0) # reads just fine
df_pl = pl.read_csv(source=kw_path, separator=";", has_header=True) # gives the trouble

Файл CSV –
Код: Выделить всё
kw;desc
DATE;Date and Program Information
IDENT;Identification of a Super Element
IEND;End of a Super Element
UNITS;Definition of the consistent units used in this Sesam Interface file
TDELEM;Name of an Element and/or comment
TDLOAD;Name of a Local Load Case and/or comment
TDMATER;Name of a Material Type and/or comment
TDNODE;Name of a Node and/or comment
TDSECT;Name of a General Eccentric Sandwich Section and/or comment
TDSETNAM;Name of a Set and/or comment
TDSUPNAM;Name of a Super Element and/or comment
TEXT;User supplied Text
TSLAYER;Name of a General Eccentric Sandwich Type and/or comment
BEPS;Beam Element for Plane Systems
CSTA;Plane Constant Strain Triangle
EDIT_1: ссылка на CSV-файл.>
Подробнее здесь: https://stackoverflow.com/questions/766 ... ars-python
Мобильная версия