VOOZH about

URL: https://www.geeksforgeeks.org/pandas/python-pandas-series-axes/

⇱ Python | Pandas Series.axes - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Python | Pandas Series.axes

Last Updated : 28 Jan, 2019
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 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.axes attribute returns a list of row axis labels of the given Series object.
Syntax:Series.axes Parameter : None Returns : list of row axis labels
Example #1: Use Series.axes attribute to return the row axis labels of the given Series object. Output : 👁 Image
Now we will use Series.axes attribute to return a list of row axis labels for the given Series object. Output : 👁 Image
As we can see in the output, the Series.axes attribute has returned a list containing the labels of the row axes for the given Series object.   Example #2 : Use Series.axes attribute to return the row axis labels of the given Series object. Output : 👁 Image
Now we will use Series.axes attribute to return a list of row axis labels for the given Series object. Output : 👁 Image
As we can see in the output, the Series.axes attribute has returned a list containing the labels of the row axes for the given Series object.
Comment

Explore