Python | Pandas Index.inferred_type Last Updated : 27 Feb, 2019 Comments Improve Suggest changes Like Article Like Report Pandas Index is an immutable ndarray implementing an ordered, sliceable set. It is the basic object which stores the axis labels for all pandas objects. Pandas Index.inferred_type attribute return a string of the data type inferred from the values of the given Index object. Syntax: Index.inferred_type Parameter : None Returns : inferred_type Example #1: Use Index.inferred_type attribute to find out the inferred data type of the value in the given Index object. Python3 # importing pandas as pd import pandas as pd # Creating the index idx = pd.Index(['Jan', 'Feb', 'Mar', 'Apr', 'May']) # Print the index print(idx) Output : Index(['Jan', 'Feb', 'Mar', 'Apr', 'May'], dtype='object') Now we will use Index.inferred_type attribute to find out the inferred dtype of the underlying data of the given Index object. Python3 1== # return the inferred dtype result = idx.inferred_type # Print the result print(result) Output : mixed As we can see in the output, the Index.inferred_type attribute has returned String as the inferred data type of the given Index object. Example #2 : Use Index.inferred_type attribute to find out the inferred data type of the value in the given Index object. Python3 # importing pandas as pd import pandas as pd # Creating the index idx = pd.Index(['2012-12-12', None, '2002-1-10', None]) # Print the index print(idx) Output : Index(['2012-12-12', None, '2002-1-10', None], dtype='object') Now we will use Index.inferred_type attribute to find out the inferred dtype of the underlying data of the given Index object. Python3 1== # return the inferred dtype result = idx.inferred_type # Print the result print(result) Output : mixed As we can see in the output, the Index.inferred_type attribute has returned mixed as the inferred data type of the given Index object. Comment More infoAdvertise with us Next Article Python | Pandas Index.inferred_type S Shubham__Ranjan Follow Improve Article Tags : Python Python-pandas Python pandas-indexing Practice Tags : python Similar Reads Python | Pandas Index.min() Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier. Pandas Index.min() function returns the minimum value of the Index. The function works 2 min read Python | Pandas Index.isin() Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier. Pandas Index.isin() function return a boolean array where the index values are in valu 2 min read Python | Pandas Index.ndim Pandas Index is an immutable ndarray implementing an ordered, sliceable set. It is the basic object which stores the axis labels for all pandas objects. Pandas Index.ndim attribute return the number of dimensions of the underlying data in the given Index object. By definition it is 1. Syntax: Index. 2 min read Python | Pandas Index.isna() Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier. Pandas Index.isna() function detect missing values. It return a boolean same-sized obj 2 min read Python | Pandas Index.shape Pandas Index is an immutable ndarray implementing an ordered, sliceable set. It is the basic object which stores the axis labels for all pandas objects. Pandas Index.shape attribute return a tuple of the shape of the underlying data in the given Index object. Syntax: Index.shape Parameter : None Ret 2 min read Python | Pandas DatetimeIndex.inferred_freq Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier. Pandas DatetimeIndex.inferred_freq attribute tries to return a string representing a f 2 min read Python | Pandas Index.itemsize Pandas Index is an immutable ndarray implementing an ordered, sliceable set. It is the basic object which stores the axis labels for all pandas objects. Pandas Index.itemsize attribute return the size of the dtype of the items of the underlying data in the given Index object. Syntax: Index.itemsize 2 min read Python | Pandas Index.nbytes Pandas Index is an immutable ndarray implementing an ordered, sliceable set. It is the basic object which stores the axis labels for all pandas objects. Pandas Index.nbytes attribute return the number of bytes required to store the underlying data of the given Index object. Syntax: Index.nbytes Para 2 min read Python | Pandas Index.isnull() Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier. Pandas Index.isnull() function detect missing values. It return a boolean same-sized o 2 min read Python | Pandas Index.is_unique Pandas Index is an immutable ndarray implementing an ordered, sliceable set. It is the basic object which stores the axis labels for all pandas objects. Pandas Index.is_unique attribute return True if the underlying data in the given Index object is unique else it return False. Syntax: Index.is_uniq 2 min read Like