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.20770659, 0.82196949])
arr = np.random.rand(5,5)
np.random.randint(10,100,[5,5])
array([[82, 96, 75, 71, 89],
       [31, 30, 51, 83, 41],
       [67, 42, 48, 97, 26],
       [72, 40, 98, 10, 51],
       [21, 27, 88, 40, 74]])
arr
array([[0.16243367, 0.63110508, 0.42406086, 0.09012473, 0.06837255],
       [0.56793954, 0.42375577, 0.97094924, 0.51968206, 0.31538986],
       [0.81774209, 0.77636764, 0.0022875 , 0.97491083, 0.93901111],
       [0.68323422, 0.51012963, 0.24797004, 0.30985392, 0.9926488 ],
       [0.70169367, 0.27032417, 0.48104882, 0.2145747 , 0.13595081]])