torch_frame.utils.infer_series_stype

infer_series_stype(ser: Series) torch_frame._stype.stype | None[source]

Infer stype given Series object. The inference may not be always correct/best for your data. We recommend you double-checking the correctness yourself before actually using it.

Parameters:

ser (Series) – Input series.

Returns:

Inferred stype. Returns None if

inference failed.

Return type:

Optional[stype]