* Importing CSV Using Pandas Module * feat: process video question md into html (#38667) * feat: process video question md into html * test: mdToHTML * fix: use dedicated prism component * fix: Jupyter notebook challenge file name (#38740) * fix quote error Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com> Co-authored-by: Eric Leung <eric@erictleung.com> Co-authored-by: Beau Carnes <beaucarnes@gmail.com>
28 lines
637 B
Markdown
28 lines
637 B
Markdown
---
|
|
id: 5e9a093a74c4063ca6f7c162
|
|
title: Reading Data CSV and TXT
|
|
challengeType: 11
|
|
videoId: ViGEv0zOzUk
|
|
---
|
|
|
|
## Description
|
|
<section id='description'>
|
|
</section>
|
|
|
|
## Tests
|
|
<section id='tests'>
|
|
|
|
```yml
|
|
question:
|
|
text: 'How would you import the CSV file "data.csv" and store it in a DataFrame using the Pandas module?'
|
|
answers:
|
|
- '<pre>import pandas as pd<br>df = pd.csv("data.csv")</pre>'
|
|
- '<pre>import pandas as pd<br>df = pd.read_csv("data.csv")</pre>'
|
|
- '<pre>import pandas as pd<br>pd.read_csv("data.csv")</pre>'
|
|
- '<pre>import pandas as pd<br>df = pd.csv_reader("data.csv")</pre>'
|
|
solution: 2
|
|
```
|
|
|
|
</section>
|
|
|