Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

dataframe get index name

In [7]: df.index.name
Out[7]: 'Index Title'

In [8]: df.index.name = 'foo'

In [9]: df.index.name
Out[9]: 'foo'

In [10]: df
Out[10]: 
         Column 1
foo              
Apples          1
Oranges         2
Puppies         3
Ducks           4
Comment

PREVIOUS NEXT
Code Example
Python :: python os.name mac 
Python :: 7zip python extract 
Python :: python join with int 
Python :: arch linux python 3.7 
Python :: python loop through array step size 2 
Python :: dict itterator python recursive 
Python :: isnumeric python 
Python :: if else in dictionary comprehension python 
Python :: flask get value of radio button 
Python :: Python program to get the file size of a plain file. 
Python :: capitalise words in a column pandas 
Python :: move one column value down by one column in pandas 
Python :: pyspark join 
Python :: python number and name of weekday 
Python :: specify the number of decimals in a dataframe 
Python :: python raise and exit 
Python :: Custom emoji in embed discord.py 
Python :: venv python 
Python :: python simple input popup 
Python :: clear text box tkinter python 
Python :: flask return error response 
Python :: python iterate backwards through list 
Python :: python regex match words 
Python :: pyserial example code 
Python :: pandas merge but keep certain columns 
Python :: python capture desktop as video source 
Python :: find common values in different dataframes pandas 
Python :: is everything in python an object 
Python :: create and populate dictionary python 
Python :: remove character from string by index in python 
ADD CONTENT
Topic
Content
Source link
Name
6+1 =