select rows by values in a column from Dataframe

df.loc[df['column_name'] == some_value]

 

 

details in: 

http://stackoverflow.com/questions/17071871/select-rows-from-a-dataframe-based-on-values-in-a-column-in-pandas

 

posted @ 2016-12-23 00:34  清源居士  阅读(326)  评论(0编辑  收藏  举报