Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Dividing into Groups | Performing One More AB Test
A/B Testing in Python

Swipe to show menu

book
Dividing into Groups

Now we will divide the data into the control user group and the test user group.

Task

Swipe to start coding

  1. Create the new variable df_control with the 'control' group and using the DataFrame.query() function.
  2. Create the new variable df_test with the 'test' group.
  3. Show the first row of the df_control.
  4. Show the first row of the df_test.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 3. ChapterΒ 6

Ask AI

expand
ChatGPT

Ask anything or try one of the suggested questions to begin our chat

book
Dividing into Groups

Now we will divide the data into the control user group and the test user group.

Task

Swipe to start coding

  1. Create the new variable df_control with the 'control' group and using the DataFrame.query() function.
  2. Create the new variable df_test with the 'test' group.
  3. Show the first row of the df_control.
  4. Show the first row of the df_test.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 3. ChapterΒ 6
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
We're sorry to hear that something went wrong. What happened?
some-alt