79698518

Date: 2025-07-11 15:03:01
Score: 1
Natty:
Report link

In 2025, pa.INT64 will work in class-based approach.

Just make it like this:

class FacebookAdsSchema(pa.DataFrameModel):
    clicks: pa.INT64 = pa.Field(nullable=True, ignore_na=True)

And it will use the pandas' Int64 type that supports NaN values.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: denis colomiet