- What is a NumPy array?
- What is the output of the following code snippet?
import numpy as np
# input array
in_arr1 = np.array([[ 1, 2, 3], [ -1, -2, -3]] )
print ("1st Input array :
", in_arr1)
in_arr2 = np.array([[ 4, 5, 6], [ -4, -5, -6]] )
print ("2nd Input array :
", in_arr2)
# Stacking the two arrays horizontally
out_arr = np.hstack((in_arr1, in_arr2))
print ("Output stacked array :
", out_arr)
- How do you sum a small array faster than np.sum?
- How do you delete indices, rows, or columns from a Pandas DataFrame?
- How do you write a Pandas DataFrame to a file?
- What is NaN in pandas ?
- How do you remove duplicates from a pandas DataFrame ?
- How do you change the size of figures drawn with Matplotlib?
- What are the alternatives available for plotting graphs using Python ?
..................Content has been hidden....................
You can't read the all page of ebook, please click
here login for view all page.