On the similarities between Pandas Series and Numpy array
- 2021-07-03 00:28:58
- OfStack
Similarities:
You can use brackets to get the element s [0]
You can get a single element or a single element slice s [3, 7]
You can traverse for x in s
You can call the same function to get the maximum and minimum values s. mean () s. max ()
You can use vector operations < 1 + s >
Like Numpy1, Pandas Series is also in C language, so it is faster than Python list operation