<jupyter_start><jupyter_text>arr  = randn(5,5)arr<jupyter_code>np.where(arr < 0, 0, arr)
arr = np.array([[1,2,3], [4,5,6], [7,8,9]])
arr<jupyter_output><empty_output><jupyter_text>arr.sum()<jupyter_code>arr.sum()
arr.sum(0)
arr.mean()
arr.std()
arr.var()
bool_arr = np.array([True, False, True])
bool_arr.any()
bool_arr.all()
arr = randn(5)
arr
arr.sort()
arr
countries = np.array(['France', 'Germany', 'USA', 'Russia', 'USA', 'Mexico'])
np.unique(countries)
np.in1d(['France', 'USA', 'Sweeden'], countries)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.2346368715083799, 'fraction_numerical': 0.0297951582867784, 'mean_word_length': 8.11864406779661, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 9, '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': '414774', 'license': 'MIT', 'n_tokens_mistral': 253, 'n_tokens_neox': 243, 'n_words': 37, 'path': 'l3/Lecture 12 - Array Processing.ipynb', 'repo_name': 'thatguyandy27/python-sandbox', 'size': '537'}