Skip to content

Instantly share code, notes, and snippets.

@lewtun
Last active January 9, 2022 15:35
Show Gist options
  • Save lewtun/ba6ee23a8cd948be35deb13a4e4dfe6b to your computer and use it in GitHub Desktop.
Save lewtun/ba6ee23a8cd948be35deb13a4e4dfe6b to your computer and use it in GitHub Desktop.
Chapter 7 - page 175 - fix code block
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