Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas get attribute of object

from operator import itemgetter
df['location'].apply(itemgetter('country'))
 
PREVIOUS NEXT
Tagged: #pandas #attribute #object
ADD COMMENT
Topic
Name
4+4 =