# PySurvival Tutorial: Churn Modeling

DevFeed: [PySurvival Tutorial: Churn Modeling](<https://devfeed.tech/articles/pysurvival-tutorial-churn-modeling-15813.md>)

Original publisher: [Read original article](<https://developer.squareup.com/blog/pysurvival-tutorial-churn-modeling>)

Author: Stephane Fotso

Published: 2019-05-03T14:00:00Z

Content type: tutorial

Language: en

Sources: [Square Corner Blog RSS Feed](<https://devfeed.tech/sources/square-corner-blog-rss-feed.md>)

Topics: [Tutorial](<https://devfeed.tech/topics/tutorial.md>), [Data Science](<https://devfeed.tech/topics/data-science.md>), [Software as a service](<https://devfeed.tech/topics/saas.md>), [dataset](<https://devfeed.tech/topics/dataset.md>)

Tags: [analysis](<https://devfeed.tech/tags/analysis.md>), [churn](<https://devfeed.tech/tags/churn.md>), [data-science](<https://devfeed.tech/tags/data-science.md>), [financial-services](<https://devfeed.tech/tags/financial-services.md>), [subscription](<https://devfeed.tech/tags/subscription.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>)

## AI overview

This tutorial, the second installment in a four-part series, demonstrates how to use PySurvival to build a customer churn model with survival analysis. It uses a SaaS example, covering dataset loading, categorical feature encoding, null and duplicate checks, and feature-correlation analysis.

## Source excerpt

Using PySurvival to Model Churn