dropping one or more entries from an axis is easy if you have an index array or list without those entries as that can require bit of munging and set logicthe drop method will return new object with the indicated value or values deleted from an axisin [ ]obj series(np arange( )index=[' '' '' '' '' ']in [ ]new_obj obj drop(' 'in [ ]new_obj out[ ] in [ ]obj drop([' '' ']out[ ] with dataframeindex values can be deleted from either axisin [ ]data dataframe(np arange( reshape(( ))index=['ohio''colorado''utah''new york']columns=['one''two''three''four']in [ ]data drop(['colorado''ohio']out[ ]one two three four utah new york in [ ]data drop('two'axis= out[ ]one three four ohio colorado utah new york in [ ]data drop(['two''four']axis= out[ ]one three ohio colorado utah new york indexingselectionand filtering series indexing (obj]works analogously to numpy array indexingexcept you can use the series' index values instead of only integers here are some examples thisin [ ]obj series(np arange( )index=[' '' '' '' ']in [ ]obj[' 'out[ ] in [ ]obj[ out[ ] in [ ]obj[ : out[ ]in [ ]obj[[' '' '' ']out[ ]essential functionality www it-ebooks info