Summary

To summarize, there are various ways of selecting data from pandas:

  • We can use basic indexing, which is closest to our understanding of accessing data in an array.
  • We can use label- or integer-based indexing with the associated operators.
  • We can use a MultiIndex, which is the pandas version of a composite key comprising multiple fields.
  • We can use a Boolean/logical index.

For further references about indexing in pandas, please take a look at the official documentation at http://pandas.pydata.org/pandas-docs/stable/indexing.html.

In the next chapter, we will examine the topic of grouping, reshaping, and merging data using pandas.

..................Content has been hidden....................

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