Series.dtypes

Series.dtypes

Return the pandas dtypes in the DataFrame. OpenSearch types are mapped to pandas dtypes via Mappings._os_dtype_to_pd_dtype.__doc__

Returns

pandas.Series

The data type of each column.

See Also

:pandas_api_docs:`pandas.DataFrame.dtypes`

Examples

>>> from tests import OPENSEARCH_TEST_CLIENT
>>> df = oml.DataFrame(OPENSEARCH_TEST_CLIENT, 'flights', columns=['Origin', 'AvgTicketPrice', 'timestamp', 'dayOfWeek'])
>>> df.dtypes
Origin                    object
AvgTicketPrice           float64
timestamp         datetime64[ns]
dayOfWeek                  int64
dtype: object