<jupyter_start><jupyter_text>MATRIX<jupyter_code>array2 = np.array([[1,2,3],[4,5,6],[7,8,9]])
array2
array2[0]
array2[2,1] # better than using between brackets 
array2[0:,:1]<jupyter_output><empty_output><jupyter_text>CONDITIONAL SELECTION<jupyter_code>ar = np.arange(1,11)
ar
bol = ar > 5 
bol
 ar[bol]

ar[ar>5]
ar[ar<3]
ar1 = np.arange(50).reshape(5,10)
ar1
ar1[1:5,3:7]<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.19106699751861042, 'fraction_numerical': 0.09181141439205956, 'mean_word_length': 9.35897435897436, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 11, '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': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '645296', 'license': 'MIT', 'n_tokens_mistral': 213, 'n_tokens_neox': 205, 'n_words': 25, 'path': 'numpy/Numpy_indexing.ipynb', 'repo_name': 'DEKKAR-AHMED/data_Science_Learning', 'size': '403'}