Thiago José Moser Poletto
01/24/2025, 12:12 PMcars:
type: pandas.CSVDataset
filepath: data/01_raw/company/cars.csv
load_args:
sep: ','
save_args:
index: False
date_format: '%Y-%m-%d %H:%M'
decimal: .
schema:
Hall
01/24/2025, 12:12 PMThiago José Moser Poletto
01/24/2025, 12:16 PMMatthias Roels
01/24/2025, 1:03 PMdtype
arg of pandas’ read_csv
method in the load_args
field. Is that what you are looking for? So:
cars:
type: pandas.CSVDataset
filepath: data/01_raw/company/cars.csv
load_args:
sep: ','
dtype: {}
save_args:
index: False
date_format: '%Y-%m-%d %H:%M'
decimal: .
Thiago José Moser Poletto
01/24/2025, 1:05 PMMatthias Roels
01/24/2025, 1:07 PMdf.dtypes
when writing to csv. You can always cast to the correct dtype from within the nodeThiago José Moser Poletto
01/24/2025, 1:10 PM[{'name': 'col1', 'type': 'STRING'},...]
. If schema is not provided, it will be generated according to dtypes of DataFrame columns. See BigQuery API documentation on available names of a field.
New in version 0.3.1 of pandas-gbq.Thiago José Moser Poletto
01/24/2025, 1:12 PMNok Lam Chan
01/24/2025, 1:22 PMThiago José Moser Poletto
01/24/2025, 1:22 PMThiago José Moser Poletto
01/24/2025, 1:24 PMNok Lam Chan
01/24/2025, 1:40 PMThiago José Moser Poletto
01/24/2025, 1:49 PMkedro.io.core.DatasetError: Failed while saving data to data set GBQTableDataset
Could not convert DataFrame to Parquet.