Python | Pandas Index.strides 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.strides attribute return the strides of the underlying data of the given Index object. It basically return a tuple of bytes to step in each dimension when traversing the Index. Syntax: Index.strides Parameter : None Returns : number of strides Example #1: Use Index.strides attribute to find the strides for 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', 'Rio']) # Print the index print(idx) Output : Now we will use Index.strides attribute to find the strides for the underlying data in the given Index object. Python3 1== # return the number of strides result = idx.strides # Print the result print(result) Output : As we can see in the output, the Index.strides attribute has returned the strides for the underlying data in the given Index object. Example #2 : Use Index.strides attribute to find the strides for 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.strides attribute to find the strides for the underlying data in the given Index object. Python3 1== # return the number of strides result = idx.strides # Print the result print(result) Output : As we can see in the output, the Index.strides attribute has returned the strides for the underlying data in the given Index object. Comment More infoAdvertise with us Next Article Python | Pandas Index.strides S Shubham__Ranjan Follow Improve Article Tags : Python Python-pandas Python pandas-indexing Practice Tags : python Similar Reads Python | Pandas Index.size 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.size attribute return the number of elements in the underlying data of the given Index object. Syntax: Index.size Parameter : None Ret 2 min read Python | Pandas Series.ix 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.tolist() 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.tolist() function return a list of the values. These are each a scalar ty 1 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 Index.where 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.where function return an Index of same shape as self and whose corresponding entries are from self where cond is True and otherwise ar 2 min read Python | Pandas Series.item() Pandas series is a One-dimensional ndarray with axis labels. The labels need not be unique but must be a hashable type. The object supports both integer- and label-based indexing and provides a host of methods for performing operations involving the index. Pandas Series.item() function return the fi 2 min read Python | Pandas Series.ndim 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.shift() 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.shift() function shift index by desired number of time frequency incremen 2 min read Python | Pandas Index.values 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.values attribute return an array representing the data in the given Index object. Syntax: Index.values Parameter : None Returns : an a 2 min read Python | Pandas Index.repeat() 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.repeat() function repeat elements of an Index. The function returns a new 2 min read Like