pandera.MultiIndex.coerce_dtype

MultiIndex.coerce_dtype(multi_index)[source]

Coerce type of a pd.Series by type specified in pandas_dtype.

Parameters

multi_index (MultiIndex) – multi-index to coerce.

Return type

MultiIndex

Returns

MultiIndex with coerced data type