Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR 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
Source by pandas.pydata.org #
 
PREVIOUS NEXT
Tagged: #pandas #dataframe #values #column
ADD COMMENT
Topic
Name
7+4 =