更新时间:2021-07-02 21:28:15
封面
版权信息
About the Authors
About the Reviewer
www.PacktPub.com
Why subscribe?
Customer Feedback
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
Getting to Know the Tools
Introduction
Installing Anaconda on Windows
How to do it...
Installing Anaconda on macOS
Installing Anaconda on Linux
Checking the Anaconda installation
Installing SciPy from a binary distribution on Windows
Installing Python
Installing the SciPy stack
Installing SciPy from a binary distribution on macOS
Installing the Xcode command-line tools
Installing Homebrew
Installing Python 3
Installing SciPy from source on Linux
Installing optional packages with conda
Getting ready
Installing packages with pip
Setting up a virtual environment with conda
Creating a virtual environment for development with conda
Creating a conda environment with a different version of a package
Using conda environments to run different versions of Python
Creating virtual environments with venv
Running SciPy in a script
Running SciPy in Jupyter
Running SciPy in Spyder
Running SciPy in PyCharm
Getting started
Getting Started with NumPy
Creating NumPy arrays
How to do it…
Creating an array from a list
Specifying the data type for elements in an array
Creating an empty array with a given shape
Creating arrays of zeros and ones with a single value
Creating arrays with equally spaced values
Creating an array by repeating elements
Creating an array by tiling another array
Creating an array with the same shape as another array
Using object arrays to store heterogeneous data
See also
Querying and changing the shape of an array
Storing and retrieving NumPy arrays
Storing a NumPy array in text format
Storing a NumPy array in CSV format
Loading an array from a text file
Storing a single array in binary format
Storing several arrays in binary format
Loading arrays stored in NPY binary format
Indexing
Accessing sub arrays using slices