<jupyter_start><jupyter_text>Introduction to Numpy<jupyter_code>import numpy as np<jupyter_output><empty_output><jupyter_text>Creating arrays  Create a python list<jupyter_code>python_list = [3.0, 2.0, 1.0]
type(python_list)<jupyter_output><empty_output><jupyter_text>Create a numpy array from the python list<jupyter_code>numpy_array = np.array(python_list)
type(numpy_array)<jupyter_output><empty_output><jupyter_text>View the type of the numpy array<jupyter_code>numpy_array.dtype<jupyter_output><empty_output><jupyter_text>Create an empty array<jupyter_code>ar = np.empty([2,3])
ar<jupyter_output><empty_output><jupyter_text>Create an array initialized with zeros<jupyter_code>np.zeros([2,3])<jupyter_output><empty_output><jupyter_text>Create an array initialized with ones<jupyter_code>np.ones([3])<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.11164465786314526, 'fraction_numerical': 0.013205282112845138, 'mean_word_length': 13.631578947368421, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, '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': '7', 'dir': 'jupyter-structured-clean-dedup', 'id': '611998', 'license': 'Apache-2.0', 'n_tokens_mistral': 326, 'n_tokens_neox': 320, 'n_words': 45, 'path': 'Introduction Numpy.ipynb', 'repo_name': 'danielsobrado/maths-for-machine-learning', 'size': '833'}