Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

pandas dataframe get values of a column by name

In [4]: ages = titanic["Age"]

In [5]: ages.head()
Out[5]: 
0    22.0
1    38.0
2    26.0
3    35.0
4    35.0
Name: Age, dtype: float64
Comment

PREVIOUS NEXT
Code Example
Python :: create new django app 
Python :: install models python 
Python :: thousands separator python 
Python :: python function to print random number 
Python :: sklearn random forest regressor 
Python :: pip vs anaconda venv 
Python :: selenium-screenshot python 
Python :: python ftp upload file 
Python :: fibonacci series python recursion 
Python :: dice simulator in python 
Python :: how to get a random element from an array in python 
Python :: django-admin command not found 
Python :: python print float in scientific notation 
Python :: first position dict python 
Python :: sklearn minmaxscaler pandas 
Python :: brownie from wei to ether 
Python :: python selenium move cursor to element 
Python :: python dns pip 
Python :: py get days until date 
Python :: replit clear 
Python :: python check my gpu 
Python :: django python base 64 encode 
Python :: django how to set a navbar active 
Python :: how to clear console in repl.it python 
Python :: python datetime now minus 3 hours 
Python :: seaborn create a correlation matrix 
Python :: ddos in python 
Python :: matplotlib 3D plots reduce margins 
Python :: change value in pandas dataframe cell 
Python :: python float to string n decimals 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =