Learn practical skills, build real-world projects, and advance your career
import numpy as np
import pandas as pd
np.random.rand(2)
array([0.83419678, 0.32687985])
arr = np.random.rand(5,5)
np.random.randint(10,100,[5,5])
array([[71, 33, 19, 71, 59],
       [11, 94, 85, 43, 74],
       [73, 92, 98, 98, 52],
       [68, 85, 63, 77, 83],
       [54, 11, 28, 14, 98]])
arr
array([[0.35888553, 0.82232463, 0.75128724, 0.3760468 , 0.49337634],
       [0.35357155, 0.69369423, 0.0789495 , 0.83533914, 0.30494082],
       [0.74500831, 0.58492219, 0.39827142, 0.84112785, 0.16462376],
       [0.8813903 , 0.32995345, 0.39567349, 0.92043628, 0.33703218],
       [0.28776373, 0.43751064, 0.16387563, 0.06115532, 0.66064708]])