Created
February 13, 2018 22:51
-
-
Save Fhernd/639b72b2c036fae660d84c2634d7770f to your computer and use it in GitHub Desktop.
Lectura de un archivo de texto plano para cargar su contenido en un arreglo en Python.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
# El archivo está delimitado por coma, y los datos son de | |
# tipo cadena de caracteres: | |
libros = np.loadtxt('libros.txt', delimiter=',', dtype=str) | |
print(libros) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment