Dividing into Groups
Now we will divide the data into the control user group and the test user group.
Task
Swipe to start coding
- Create the new variable
df_control
with the'control'
group and using theDataFrame.query()
function. - Create the new variable
df_test
with the'test'
group. - Show the first row of the
df_control
. - Show the first row of the
df_test
.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 3. ChapterΒ 6
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Suggested prompts:
Summarize this chapter
Explain the code in file
Explain why file doesn't solve the task
Awesome!
Completion rate improved to 4.55
Dividing into Groups
Swipe to show menu
Now we will divide the data into the control user group and the test user group.
Task
Swipe to start coding
- Create the new variable
df_control
with the'control'
group and using theDataFrame.query()
function. - Create the new variable
df_test
with the'test'
group. - Show the first row of the
df_control
. - Show the first row of the
df_test
.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 3. ChapterΒ 6
single