Skip to content

Ensure empty data in query response str fields work with pandas>=3 #599

Description

@alyssadai

Before pandas 3, string columns with some none-type values would be typed as object, but with pandas 3+, they are typed as str, with missing values being converted to np.nan. This breaks the type checking for some our current Pydantic models for Python>=3.11 (where pandas 3+ is used by default).

I think a long-term fix would be to normalize missing values to None to ensure they are not interpreted as numeric, but for now I have pinned the pandas version.

Originally posted by @alyssadai in #598 (comment)

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions