From 3a91d88b1edd59b84eb83e5834ca945043aa1871 Mon Sep 17 00:00:00 2001 From: Ray Johnson Date: Wed, 6 May 2020 16:22:40 -0500 Subject: [PATCH] Importing CSV Using Pandas Module (#38721) * 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 Co-authored-by: Eric Leung Co-authored-by: Beau Carnes --- .../reading-data-csv-and-txt.english.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/curriculum/challenges/english/08-data-analysis-with-python/data-analysis-with-python-course/reading-data-csv-and-txt.english.md b/curriculum/challenges/english/08-data-analysis-with-python/data-analysis-with-python-course/reading-data-csv-and-txt.english.md index 817ab09098..d2eff798cb 100644 --- a/curriculum/challenges/english/08-data-analysis-with-python/data-analysis-with-python-course/reading-data-csv-and-txt.english.md +++ b/curriculum/challenges/english/08-data-analysis-with-python/data-analysis-with-python-course/reading-data-csv-and-txt.english.md @@ -14,12 +14,13 @@ videoId: ViGEv0zOzUk ```yml question: - text: Question + text: 'How would you import the CSV file "data.csv" and store it in a DataFrame using the Pandas module?' answers: - - one - - two - - three - solution: 3 + - '
import pandas as pd
df = pd.csv("data.csv")
' + - '
import pandas as pd
df = pd.read_csv("data.csv")
' + - '
import pandas as pd
pd.read_csv("data.csv")
' + - '
import pandas as pd
df = pd.csv_reader("data.csv")
' + solution: 2 ```