It is a Linear Algebra Library for #Python, the reason it is so important for Data Science is that almost all of the libraries in the PyData Ecosystem rely on NumPy as one of their main building blocks👨🏫.
NumPy arrays are the main way we use Numpy. Numpy arrays essentially come in two flavors: vectors and matrices. Vectors are strictly 1-d arrays and matrices are 2-d (but you should note a matrix can still have only one row or one column).
2⃣Built-in Methods
There are lots of built-in ways to generate Arrays
- zeros
- ones
- eye
- arange
- linspace
3⃣Random
Numpy also has lots of ways to create random number arrays:
- rand
- randn
- randint
4⃣Array Attributes and Methods
Let's discuss some useful attributes and methods of an array:
- shape
- reshape
- max
- min
- std
- var
5⃣Arithmetic
You can easily perform array with array arithmetic, or scalar with array arithmetic. Let's see some examples:
6⃣Universal Array Functions
Numpy comes with many universal array functions, which are essentially just mathematical operations you can use to perform the operation across the array. Let's show some common ones:
7⃣NumPy Indexing and Selection
- Bracket Indexing and Selection
- Indexing a 2D array (matrices)
The goal of this project is to divide customers into groups based on common characteristics in order to maximize the value of each customer to the business.
The main goal of this project is to collect and analyze data in order to select a location in Melbourne to open a Cafeteria. We want to help a business owner planning to open up a Cafe in a location by exploring better facilities around the Suburb.