<jupyter_start><jupyter_text>Repaso de Python 3 Clase: Microestructura y Sistemas de Trading ---  Modulos<jupyter_code>import datetime
import pandas as pd
import numpy as np
indice = [1, 2, 3, 4, 5]
columnas = ['A','B', 'C', 'D']
df = pd.DataFrame(index=indice, columns=columnas)
df = df.fillna(0) # -- llenar todas las celdas con 0s
df.head(3) # -- Para mostrar los 5 primeros renglones<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.13189448441247004, 'fraction_numerical': 0.023980815347721823, 'mean_word_length': 5.147058823529412, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '386951', 'license': 'MIT', 'n_tokens_mistral': 172, 'n_tokens_neox': 161, 'n_words': 48, 'path': 'Notas_Python/Notas_RepasoPython3/DataFrame.ipynb', 'repo_name': 'valenescobar/MyST', 'size': '417'}