a guide to numpy and pandas 1

a guide to numpy and pandas

>>> a = np.array([1, 2, 3])
>>> type(a)


>>> b = np.array((3, 4, 5))
>>> type(b)

Here is what the above code is Doing:
1. We import the numpy module and give it the alias np.
2. We create a numpy array from a list.
3. We check the type of the array.
4. We create a numpy array from a tuple.
5. We check the type of the array.

Similar Posts