Preprocessing Data
Imagine that last chapter you read 14 days ago. And you already have the file with all the data fixed during this period for the analyzing results of the A/B test. Now we are going to prepare all data received for the analysis.
So after rereading the task, we can make 2 points:
- The test was held with the Web devices;
- The test started after the 2021-01-10 Let's create a new DataFrame that will fit well with our needs.
Use
DataFrame.query()
function to create new DataFrame with options needed. Go here to learn more about thepandas
library.
Swipe to start coding
- Import the
pandas
with thepd
alias. - Save only
'Web'
platform into the new df nameddf_platform
using theDataFrame.query()
function. - Save the information fixed only after the
'2021-01-10'
into thedf_ab
variable. - Show what is inside the
df_ab
variable.
Løsning
Takk for tilbakemeldingene dine!
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Oppsummer dette kapittelet
Explain code
Explain why doesn't solve task
Awesome!
Completion rate improved to 4.55
Preprocessing Data
Sveip for å vise menyen
Imagine that last chapter you read 14 days ago. And you already have the file with all the data fixed during this period for the analyzing results of the A/B test. Now we are going to prepare all data received for the analysis.
So after rereading the task, we can make 2 points:
- The test was held with the Web devices;
- The test started after the 2021-01-10 Let's create a new DataFrame that will fit well with our needs.
Use
DataFrame.query()
function to create new DataFrame with options needed. Go here to learn more about thepandas
library.
Swipe to start coding
- Import the
pandas
with thepd
alias. - Save only
'Web'
platform into the new df nameddf_platform
using theDataFrame.query()
function. - Save the information fixed only after the
'2021-01-10'
into thedf_ab
variable. - Show what is inside the
df_ab
variable.
Løsning
Takk for tilbakemeldingene dine!
Awesome!
Completion rate improved to 4.55single