loc
method allow you to do?'
+ text: |
+ What does the loc
method allow you to do?
+
answers:
- - 'Retrieve a subset of rows and columns by supplying interger-location arguments.'
- - 'Access a group of rows and columns by supplying label(s) arguments.'
- - 'Returns the first n
rows based on the integer argument supplied.'
+ - |
+ Retrieve a subset of rows and columns by supplying interger-location arguments.
+ - |
+ Access a group of rows and columns by supplying label(s) arguments.
+ - |
+ Returns the first n
rows based on the integer argument supplied.
solution: 2
```
diff --git a/curriculum/challenges/english/08-data-analysis-with-python/data-analysis-with-python-course/data-cleaning-and-visualizations.english.md b/curriculum/challenges/english/08-data-analysis-with-python/data-analysis-with-python-course/data-cleaning-and-visualizations.english.md
index 835f43837a..5947aee90e 100644
--- a/curriculum/challenges/english/08-data-analysis-with-python/data-analysis-with-python-course/data-cleaning-and-visualizations.english.md
+++ b/curriculum/challenges/english/08-data-analysis-with-python/data-analysis-with-python-course/data-cleaning-and-visualizations.english.md
@@ -7,23 +7,32 @@ videoId: mHjxzFS5_Z0
---
## Description
+
Which cells are responsible for rich display?+ text: | + Which cells are responsible for rich display? + answers: - - Code Cells - - Markdown Cells - - Raw Cells + - | + Code Cells + - | + Markdown Cells + - | + Raw Cells solution: 1 ```
.read_html()
method we can we use for parsing HTML documents and extracting tables?
+ text: |
+ What Python library has the `.read_html()` method we can we use for parsing HTML documents and extracting tables?
answers:
- - 'BeautifierSoupy'
- - 'WebReader'
- - 'HTTP-master'
- - 'Pandas'
+ - |
+ BeautifierSoupy
+ - |
+ WebReader
+ - |
+ HTTP-master
+ - |
+ Pandas
solution: 4
```
diff --git a/curriculum/challenges/english/08-data-analysis-with-python/data-analysis-with-python-course/python-functions-and-collections.english.md b/curriculum/challenges/english/08-data-analysis-with-python/data-analysis-with-python-course/python-functions-and-collections.english.md
index 5f1d171b13..6b728d0cf0 100644
--- a/curriculum/challenges/english/08-data-analysis-with-python/data-analysis-with-python-course/python-functions-and-collections.english.md
+++ b/curriculum/challenges/english/08-data-analysis-with-python/data-analysis-with-python-course/python-functions-and-collections.english.md
@@ -7,23 +7,28 @@ videoId: NzpU17ZVlUw
---
## Description
+
for key in user.items():' - - '
print(key)
for key, value in user.all():
print(key, value)
print(value)' - - 'for key, value in user.items():' - - '
print(key, value)for key, value in user' + - | + ```python + for key in user.items(): + print(key) + ``` + - | + ```python + for key, value in user.all(): + print(key, value) + print(value) + ``` + - | + ```python + for key, value in user.items(): + print(key, value) + ``` + - | + ```python + for key, value in user + print(key, value) + ``` solution: 3 -``` +````
print(key, value)
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' + - | + ```python + import pandas as pd + df = pd.csv("data.csv") + ``` + - | + ```python + import pandas as pd + df = pd.read_csv("data.csv") + ``` + - | + ```python + import pandas as pd + pd.read_csv("data.csv") + ``` + - | + ```python + import pandas as pd + df = pd.csv_reader("data.csv") + ``` solution: 2 -``` +````
df = pd.csv_reader("data.csv")
Cursor
instance have and what does it allow?
+ text: |
+ What method does a `Cursor` instance have and what does it allow?
answers:
- - The Cursor
instance has a .run()
method which allows you to run SQL queries.
- - The Cursor
instance has a .select()
method which allows you to select records.
- - The Cursor
instance has an .execute()
method which will receive SQL parameters to run against the database.
+ - |
+ The `Cursor` instance has a `.run()` method which allows you to run SQL queries.
+ - |
+ The `Cursor` instance has a `.select()` method which allows you to select records.
+ - |
+ The `Cursor` instance has an `.execute()` method which will receive SQL parameters to run against the database.
solution: 3
```
diff --git a/curriculum/challenges/english/08-data-analysis-with-python/data-analysis-with-python-course/reading-data-introduction.english.md b/curriculum/challenges/english/08-data-analysis-with-python/data-analysis-with-python-course/reading-data-introduction.english.md
index e2b729e75a..c7583bf734 100644
--- a/curriculum/challenges/english/08-data-analysis-with-python/data-analysis-with-python-course/reading-data-introduction.english.md
+++ b/curriculum/challenges/english/08-data-analysis-with-python/data-analysis-with-python-course/reading-data-introduction.english.md
@@ -7,6 +7,7 @@ videoId: cDnt02BcHng
---
## Description
+
b = np.array([[1.0,2.0,3.0],[3.0,4.0,5.0]])' + text: | + What will the following code print? + + ```python + b = np.array([[1.0,2.0,3.0],[3.0,4.0,5.0]]) + print(b) + ``` answers: - - '
print(b)
[[1.0 2.0 3.0]
[3.0 4.0 5.0]]' - - '[[1. 2. 3.]
[3. 4. 5.]]' - - '[[1. 3.]
[2. 4.]
[3. 5.]' + - | + ```python + [[1.0 2.0 3.0] + [3.0 4.0 5.0]] + ``` + - | + ```python + [[1. 2. 3.] + [3. 4. 5.]] + ``` + - | + ```python + [[1. 3.] + [2. 4.] + [3. 5.] + ``` solution: 2 -``` +````