pyspark.pandas.Index.inferred_type¶
-
property
Index.
inferred_type
¶ Return a string of the type inferred from the values.
Examples
>>> from datetime import datetime >>> ps.Index([1, 2, 3]).inferred_type 'integer'
>>> ps.Index([1.0, 2.0, 3.0]).inferred_type 'floating'
>>> ps.Index(['a', 'b', 'c']).inferred_type 'string'
>>> ps.Index([True, False, True, False]).inferred_type 'boolean'