Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas series filter by index

import pandas as pd
series= pd.Series({'temp1':12,'temp2':23, 'temp3':31, 'temp4':42})
# assuming you want to print only temp4
print(series[series.index=="temp4"])
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pandas #series #filter #index
ADD COMMENT
Topic
Name
9+5 =