in [ ]obj[[ ]out[ ] in [ ]obj[obj out[ ] slicing with labels behaves differently than normal python slicing in that the endpoint is inclusivein [ ]obj[' ':' 'out[ ] setting using these methods works just as you would expectin [ ]obj[' ':' ' in [ ]obj out[ ] as you've seen aboveindexing into dataframe is for retrieving one or more columns either with single value or sequencein [ ]data dataframe(np arange( reshape(( ))index=['ohio''colorado''utah''new york']columns=['one''two''three''four']in [ ]data out[ ]one two ohio colorado utah new york three in [ ]data['two'out[ ]ohio colorado utah new york nametwo four in [ ]data[['three''one']out[ ]three one ohio colorado utah new york indexing like this has few special cases first selecting rows by slicing or boolean arrayin [ ]data[: out[ ]one two three four in [ ]data[data['three' out[ ]one two three four getting started with pandas www it-ebooks info