Last active
January 9, 2022 15:35
-
-
Save lewtun/ba6ee23a8cd948be35deb13a4e4dfe6b to your computer and use it in GitHub Desktop.
Chapter 7 - page 175 - fix code block
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
for question_type in ["How", "What", "Is"]: | |
for question in ( | |
dfs["train"][dfs["train"].question.str.startswith(question_type)] | |
.sample(n=3, random_state=42)['question']): | |
print(question) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment