Python Tutorial: Grouping and summarizing data

Pubblicato il: 09 marzo 2020
sul canale di: DataCamp
300
3

Want to learn more? Take the full course at https://campus.datacamp.com/courses/m... at your own pace. More than a video, you'll learn hands-on coding & quickly apply skills to your daily work.

---
In the telco dataset, there are two groups of customers we are interested in: The churners, and the non-churners, and as you discovered using the `.value_counts()` method, most of these customers did not churn.

Our goal in this course is to build a model that uses the information about each customer in the dataset to classify whether or not a new customer will churn. This model, therefore, has two outcomes, or classes: Either a customer will churn, or not churn.

Before even getting to the model building stage, you can use exploratory data analysis to identify differences between these two classes that can help you better understand the drivers of customer churn. Do churners call customer service more often? Does one state have more churners compared to another? These are some questions you can ask of the data.

In order to answer these questions, you need to be able to group and summarize your data. To group data, pandas has a useful method called .groupby().

Let's see it in action!

#Grouping #summarizing #data #PythonTutorial #Python #DataCamp
#MarketingAnalytics


In questa pagina del sito puoi guardare il video online Python Tutorial: Grouping and summarizing data della durata di ore minuti seconda in buona qualità , che l'utente ha caricato DataCamp 09 marzo 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 300 volte e gli è piaciuto 3 spettatori. Buona visione!