Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas inplace

# inplace = True --> modify original data
data.set_index('Year', inplace=True)
# equals to
data = data.set_index('Year')
 
PREVIOUS NEXT
Tagged: #pandas #inplace
ADD COMMENT
Topic
Name
2+4 =