Skip to content

Setting partial Schema to find_arrow_all and find_pandas_all #243

@frbelotto

Description

@frbelotto

Hello guys,
I would like to discuss about setting the Schema for find_arrow_all or find_pandas_all.
I have a database with several columns, two of them are ObjetctIds that are crashing my code (I´ve reported here ), so, I am trying to import all my table columns but just setting such columns to be imported as strings

schema = Schema({'_id': pa.string(), 'referenciaConversao': pa.string()})
pd_confirmacao_conversao = find_pandas_all(pd_confirmacao_conversao, {'estadoContabilizacaoEvento': {'$lt': 100}}, schema=schema)

My issue here is that, as I only set the schema for those two columns, only those columns are being imported from the dataset! Is there any way to improve it?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions