How to do it...

Run the following commands, which provide examples of the ix indexing method:

single_item = df.ix[100024, 1]
df1 = df.ix[[201024,202034], :2]

The data returned by these calls is the following:

single_item:

24

df1:

             item  inventory
201024     Eraser         32
202034  Sharpener         12
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset