Python | Pandas Index.itemsize Last Updated : 20 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.itemsize attribute return the size of the dtype of the items of the underlying data in the given Index object. Syntax: Index.itemsize Parameter : None Returns : return the size of dtype Example #1: Use Index.itemsize attribute to find out the size of the dtype of the underlying data in the given Index object. Python3 # importing pandas as pd import pandas as pd # Creating the index idx = pd.Index(['Melbourne', 'Sanghai', 'Lisbon', 'Doha', 'Moscow']) # Print the index print(idx) Output : Now we will use Index.itemsize attribute to find out the size of the dtype of the underlying data in the given Index object. Python3 1== # return the size of dtype result = idx.itemsize # Print the result print(result) Output : As we can see in the output, the Index.itemsize attribute has returned 8, indicating that the size of the dtype of the underlying data in the index object is 8. Example #2 : Use Index.itemsize attribute to find out the size of the dtype of the underlying data in the given Index object. Python3 # importing pandas as pd import pandas as pd # Creating the index idx = pd.Index([900 + 3j, 700 + 25j, 620 + 10j, 388 + 44j, 900]) # Print the index print(idx) Output : Now we will use Index.itemsize attribute to find out the size of the dtype of the underlying data in the given Index object. Python3 1== # return the size of dtype result = idx.itemsize # Print the result print(result) Output : As we can see in the output, the Index.itemsize attribute has returned 8, indicating that the size of the dtype of the underlying data in the index object is 8. Comment More infoAdvertise with us Next Article Python | Pandas Index.itemsize 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.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.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.insert() 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.insert() function make new Index inserting new item at location. This fun 2 min read Python | Pandas Index.max() 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.max() function returns the maximum value of the Index. The function works 2 min read Python | Pandas Index.nunique() 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.nunique() function return number of unique elements in the object. It ret 2 min read Python | Pandas Series.itemsize 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 series is a One-dimensional ndarray with axis labels. The labels need not be un 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 Python | Pandas Index.is_monotonic 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_monotonic attribute is an alias for is_monotonic_increasing. It return True if the underlying data in the given Index object is mon 2 min read Python | Pandas Index.inferred_type 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_ty 2 min read Like