Klaviyo Data Scientist | March 2021

?
AnonymousApril 5, 2021, 01:12 AM
Upvote
1
Downvote

Company: Klaviyo

Position: Data Scientist

Location: nan

Level: Associate/Entry Level

Outcome: NA

How was the interview process? What was it like?

`easy , need more details on their expectation`

`Modeling and ML Knowledge, Probability, AB Testing & Statistics`

What was one of your solutions?

`# performing aggregation `
`aggregated_data = data.groupby(['customer_id','gender']).agg({'date':['max'],'customer_id':['count']})`
`# renaming columns`
`aggregated_data.columns = [ 'most_recent_order_date','order_count']`
`#Applying multiple aggregation functions to a single column will result in a multiindex data frame which is difficult to use`
`# Hence resetting index to get back grouped columns`
`aggregated_data = aggregated_data.reset_index()`
`# Sorting in ascending order of customer_id`
`aggregated_data=aggregated_data.sort_values(by=['customer_id'])`
`print('Result Exercise 1')`
`aggregated_data.head(10)`

Data Scientist
I
Ichimoku
Top comment
Lorem ipsum dolor sit amet, consectetur adipiscing elit
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
F
Fibonacci
Sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et

quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est
I
Ichimoku
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium 😀
F
Fibonacci
Sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et

quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est
There's so much more to Interview Query! Sign up to access hundreds of interview questions, expert coaching and a flourishing data science community.