<jupyter_start><jupyter_text>NUMPY<jupyter_code>my_list = [1,2,3]
print(my_list)

arr = np.array(my_list)
print(arr)
arr
mat = [[1,2,3],[4,5,6],[7,8,9]]
arr2 = np.array(mat)
print(arr2)
arr2
np.arange(0,10)
np.arange(0,10,2)
np.zeros(13)
np.zeros((10,5))
np.ones(5)
np.ones((3,6)) 
np.linspace(0,5,10)
np.linspace(0,10,10)
np.linspace(1,11,10)
np.linspace(1,11,1000)
import numpy as np
np.eye(4)
np.eye(40)
np.random.rand(5) # 5 Random numbers from 0-1
np.random.rand(5,5) # Two dimention array of random from 0-1
np.random.randn(4,4) # Random integers not only form 0-1
np.random.randint(1,100) # Random integer from 1-100
np.random.randint(1,100,10) # Random 10 integers from 1-100
arr = np.arange(25) # Arr used to reshape down
print(arr)
arr.reshape(5,5) # Reshaping the arr to 5,5 dimentions
arr_random = np.random.randint(1,100,100) # Array of 100 random integers used further 
arr_random.reshape(10,10) # Reshaping that array again
arr_random = np.random.randint(1,100,100) # Array of 100 random integers used further 
random = arr_random.reshape(10,10) # Reshaping that array again
print(random)
Max = arr_random.max()
Min = arr_random.min()
print(f"Max value here is: {Max}")
print(f"Min value here is: {Min}")
import numpy as np
arr_random = np.random.randint(1,100,100) # Array of 100 random integers used further 
random = arr_random.reshape(10,10) # Reshaping that array again
print(random)
Max = arr_random.max()
Min = arr_random.min()
print(f"Max value here is: {Max}")
print(f"Min value here is: {Min}")
print(f"Max value is at location: {arr_random.argmax()}") # lOCATION OF MAX VALUE
print(f"Min value is at location: {arr_random.argmin()}") # LOCATION OF MIN VALUE<jupyter_output>[[90  8 12  7 83 40  3 75 59 46]
 [68 58 88 13 55 76 98  1 49 77]
 [13 90 24  7 98 72 92 74 59 24]
 [31 28 38 16 26 22 48 48 39 71]
 [80 33 79 17 56 86 66  9 88 63]
 [26  4 46 58 66 67 39 35  2 78]
 [ 9 65 66 97 81 87 72 65 77 33]
 [93 50 18 11 35 12  8 79 70 85]
 [31 93 38 47  5 38 13 88 48 52]
 [69 76 83 98 18 97 28 97 74 50]]
Max value here is: 98
Min value here is: 1
Max value is at location: 16
Min value is at location: 17
{'fraction_non_alphanumeric': 0.1323943661971831, 'fraction_numerical': 0.15492957746478872, 'mean_word_length': 4.39493670886076, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '133406', 'license': 'MIT', 'n_tokens_mistral': 1100, 'n_tokens_neox': 862, 'n_words': 295, 'path': 'Numpy/Arrays in NUMPY (redone).ipynb', 'repo_name': 'HimanshuPoptani/Machine-Learing', 'size': '2130'}