Skip to content

[infra] python: add Table.create_from_pandas - #1791

Open
aspeddro wants to merge 4 commits into
masterfrom
feat-table-create-from-pandas
Open

[infra] python: add Table.create_from_pandas#1791
aspeddro wants to merge 4 commits into
masterfrom
feat-table-create-from-pandas

Conversation

@aspeddro

@aspeddro aspeddro commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

Resumo

Adiciona o método Table.create_from_pandas, um atalho que cria uma tabela de staging no BigQuery diretamente a partir de um DataFrame do pandas, sem exigir que a pessoa escreva arquivos manualmente ou monte a estrutura de pastas de partição.

from basedosdados import Table

table = Table(dataset_id="my_dataset", table_id="my_table")

# arquivo único
table.create_from_pandas(df, if_table_exists="replace")

# particionado (esquema Hive)
table.create_from_pandas(df, partition_columns=["ano", "sigla_uf"])

# parquet / avro
table.create_from_pandas(df, source_format="parquet")

Close #1774

@aspeddro aspeddro self-assigned this Jul 24, 2026
@aspeddro aspeddro added the enhancement New feature or request label Jul 24, 2026
@aspeddro
aspeddro requested a review from a team July 24, 2026 16:14
@aspeddro
aspeddro marked this pull request as ready for review July 24, 2026 16:14
@mergify

mergify Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[infra] python: Table.create_from_pandas

1 participant