<jupyter_start><jupyter_text>Create NumPy arrays using Python's "array like" data types<jupyter_code>import numpy as np
print (np.__version__)
my_list = [-17, 0, 4, 5, 9]
my_array_from_list = np.array(my_list)
my_array_from_list
my_array_from_list * 10
my_tuple = (14, -3.54, 5+7j)
np.array(my_tuple)<jupyter_output><empty_output><jupyter_text>Difference between python and numpy data structures<jupyter_code>my_tuple * 6
np.array(my_tuple) * 6<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.11181434599156118, 'fraction_numerical': 0.035864978902953586, 'mean_word_length': 8.134615384615385, 'pattern_counts': {'":': 0, '<': 9, '<?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': '443001', 'license': 'MIT', 'n_tokens_mistral': 202, 'n_tokens_neox': 187, 'n_words': 39, 'path': 'numpy-data-science-essential-training/Ex_Files_NumPy_Data_EssT/Exercise Files/Ch 2/02_01/Finish/Arrays.ipynb', 'repo_name': 'saint1729/in-learning', 'size': '474'}