2021-02-06 04:42:36 +00:00
---
id: 5e9a093a74c4063ca6f7c161
2022-03-14 22:46:48 +05:30
title: Introducción a Lectura de datos
2021-02-06 04:42:36 +00:00
challengeType: 11
videoId: cDnt02BcHng
2022-03-14 22:46:48 +05:30
bilibiliIds:
aid: 548023524
bvid: BV1Nq4y1K7iV
cid: 409020187
2021-02-06 04:42:36 +00:00
dashedName: reading-data-introduction
---
# --description--
2022-03-14 22:46:48 +05:30
*En vez de usar notebooks.ai como aparece en el video, puedes usar Google Colab.*
2021-02-06 04:42:36 +00:00
2022-03-14 22:46:48 +05:30
Más recursos:
2021-02-06 04:42:36 +00:00
2022-03-14 22:46:48 +05:30
- [Notas en GitHub ](https://github.com/krishnatray/RDP-Reading-Data-with-Python-and-Pandas )
- [Cómo abrir Notebooks desde GitHub utilizando Google Colab. ](https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb )
2021-02-06 04:42:36 +00:00
# --question--
## --text--
2022-03-14 22:46:48 +05:30
Dado un archivo llamado `certificates.csv` con estos contenidos:
2021-02-06 04:42:36 +00:00
< pre >
2022-03-14 22:46:48 +05:30
Nombre$Certificates$Tiempo (en meses)
2021-02-06 04:42:36 +00:00
Tom$8$16
Kris$2$5
Ahmad$5$9
Beau$6$12
< / pre >
2022-03-14 22:46:48 +05:30
Rellena los espacios en blanco de los argumentos que faltan a continuación:
2021-02-06 04:42:36 +00:00
```py
import csv
with open(__A__, 'r') as fp:
reader = csv.reader(fp, delimiter=__B__)
next(reader)
for index, values in enumerate(reader):
name, certs_num, months_num = values
print(f"{name} earned {__C__} certificates in {months_num} months")
```
## --answers--
A: `'certificates.csv'`
B: `'-'`
C: `values`
---
A: `'certificates.csv'`
B: `'$'`
C: `certs_num`
---
A: `'certificates'`
B: `'$'`
C: `certs_num`
## --video-solution--
2