December 2017
Beginner to intermediate
410 pages
12h 45m
English
The numpy library1 gives Python the ability to work with matrices and arrays.
1. https://docs.scipy.org/doc/numpy/index.html
import numpy as np
Pandas started off as an extension to numpy.ndarray that provided more features suitable for data analysis. These days, Pandas has evolved to the point where it shouldn’t be thought of as a collection of numpy arrays, since the two libraries are different.
import pandas as pd
df = pd.read_csv('../data/concat_1.csv')
print(df)
If you do need to get the numpy.ndarray values from a Series or DataFrame, you can use the values attribute.
a ...