<jupyter_start><jupyter_text>___ Capítulo 3 - Matemática e Estatística Básicas Seção 1 - Arrays e NumPy___<jupyter_code>import numpy as np
from numpy.random import randn
np.set_printoptions(precision=2)<jupyter_output><empty_output><jupyter_text>Criando arrays Criando arrays usando listas<jupyter_code>a = np.array([1,2,3,4,5,6])
a<jupyter_output><empty_output><jupyter_text>Criando arrays por atribuição<jupyter_code>np.random.seed(25)
c = randn(6)
c
d = np.arange(1,35)
d<jupyter_output><empty_output><jupyter_text>Fazendo operações aritméticas com arrays<jupyter_code>a * 10
c + a<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.10749185667752444, 'fraction_numerical': 0.02768729641693811, 'mean_word_length': 9.60344827586207, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '624697', 'license': 'MIT', 'n_tokens_mistral': 266, 'n_tokens_neox': 259, 'n_words': 43, 'path': 'Cap03/.ipynb_checkpoints/01_Arrays_e_NumPy-checkpoint.ipynb', 'repo_name': 'arianerfrancisco/Python-Ciencia-de-Dados', 'size': '614'}