<jupyter_start><jupyter_text>---title: "Creating a Numpy Array"author: "Sanjay"date: 2020-09-04description: "-"type: technical_notedraft: false---<jupyter_code># Importing numpy library
import numpy as np
# Creating a rank 1 Array and printing it out
arr = np.array([99, 47, 38])
print("Array with Rank 1: \n",arr)
# Creating a rank 2 Array and printing it out
arr = np.array([[11, 27, 35],
                [46, 52, 64]])
print("Array with Rank 2: \n", arr)
# Creating an array from tuple and printing it out
arr = np.array((16, 34, 27))
print("\nArray created using "
      "passed tuple:\n", arr)<jupyter_output>Array created using passed tuple:
 [16 34 27]
{'fraction_non_alphanumeric': 0.13808801213960548, 'fraction_numerical': 0.0637329286798179, 'mean_word_length': 4.116279069767442, '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': '116879', 'license': 'MIT', 'n_tokens_mistral': 259, 'n_tokens_neox': 216, 'n_words': 83, 'path': 'docs/python/numpy/Creating-a-Numpy-Array.ipynb', 'repo_name': 'Sanjay-V/mlnotes', 'size': '659'}