官术网_书友最值得收藏!

Chapter 2. NumPy Arrays

Now that we have worked on a real example utilizing the foundational data analysis libraries from SciPy stack, it's time to learn about NumPy arrays. This chapter acquaints you with the fundamentals of NumPy arrays. At the end of this chapter, you will have a basic understanding of NumPy arrays and related functions.

The topics we will address in this chapter are as follows:

  • The NumPy array object
  • Creating a multidimensional array
  • Selecting NumPy array elements
  • NumPy numerical types
  • One-dimensional slicing and indexing
  • Manipulating array shapes
  • Creating array views and copies
  • Fancy indexing
  • Indexing with a list of locations
  • Indexing NumPy arrays with Booleans
  • Broadcasting NumPy arrays

You may want to open the ch-02.ipynb file in Jupyter Notebook to follow along the examples in this chapter or type them in a new notebook of your own.

主站蜘蛛池模板: 饶河县| 娱乐| 刚察县| 民乐县| 弋阳县| 济源市| 南郑县| 长泰县| 丽水市| 阿瓦提县| 乌拉特中旗| 商城县| 崇州市| 通化市| 万州区| 威信县| 安图县| 瑞金市| 临沂市| 漯河市| 旬邑县| 迁西县| 凤阳县| 东乌珠穆沁旗| 小金县| 淳安县| 修武县| 宝坻区| 德安县| 舞阳县| 深州市| 佛山市| 铁力市| 平顶山市| 九台市| 白银市| 怀化市| 新丰县| 博罗县| 古丈县| 万山特区|