Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

pandas print column by index

#select columns with index positions 1 and 3
df.iloc[:, [1, 3]]


        points	rebounds
0	11	11
1	7	8
2	8	10
3	10	6
4	13	6
5	13	5
Comment

PREVIOUS NEXT
Code Example
Python :: Align axis labels in subplots 
Python :: Display shape of the DataFrame 
Python :: numpy primes 
Python :: theme_use() tkinter theme usage 
Python :: import modules given the full path python 
Python :: mistborn order to read 
Python :: defaultdict in python 
Python :: python pathlib os module 
Python :: Pivot Spark data frame using python 
Python :: python immutable dataclass 
Python :: python dictionary delete based on value 
Python :: how to check python version in script 
Python :: hill cipher 
Python :: websocket api python on close 
Python :: Fill in the gaps in the initials function so that it returns the initials of the words contained in the phrase received, in upper case. 
Python :: numpy shape 
Python :: Selenium get response body python 
Python :: how to save python-pptx 
Python :: Amazon price tracker in Python 
Python :: .add_prefix to certain columns python 
Python :: tkinter label border color 
Python :: python linter 
Python :: python cant remove temporary files 
Python :: rotate array in python 
Python :: python replace negative infinity 
Python :: customise the django rest api view 
Python :: pandas get higher value of column 
Python :: insertion sort 
Python :: create array numpy 
Python :: python tex box 
ADD CONTENT
Topic
Content
Source link
Name
3+8 =