Skip to main content
HomePythonAnalyzing Police Activity with pandas

Analyzing Police Activity with pandas

4.7+
44 reviews
Intermediate

Explore the Stanford Open Policing Project dataset and analyze the impact of gender on police behavior using pandas.

Start Course for Free
4 Hours16 Videos50 Exercises
64,019 LearnersTrophyStatement of Accomplishment

Create Your Free Account

GoogleLinkedInFacebook

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.
GroupTraining 2 or more people?Try DataCamp For Business

Loved by learners at thousands of companies


Course Description

Now that you have learned the foundations of pandas, this course will give you the chance to apply that knowledge by answering interesting questions about a real dataset! You will explore the Stanford Open Policing Project dataset and analyze the impact of gender on police behavior. During the course, you will gain more practice cleaning messy data, creating visualizations, combining and reshaping datasets, and manipulating time series data. Analyzing Police Activity with pandas will give you valuable experience analyzing a dataset from start to finish, preparing you for your data science career!
For Business

GroupTraining 2 or more people?

Get your team access to the full DataCamp library, with centralized reporting, assignments, projects and more
Try DataCamp for BusinessFor a bespoke solution book a demo.
  1. 1

    Preparing the data for analysis

    Free

    Before beginning your analysis, it is critical that you first examine and clean the dataset, to make working with it a more efficient process. In this chapter, you will practice fixing data types, handling missing values, and dropping columns and rows while learning about the Stanford Open Policing Project dataset.

    Play Chapter Now
    Stanford Open Policing Project dataset
    50 xp
    Examining the dataset
    100 xp
    Dropping columns
    100 xp
    Dropping rows
    100 xp
    Using proper data types
    50 xp
    Finding an incorrect data type
    50 xp
    Fixing a data type
    100 xp
    Creating a DatetimeIndex
    50 xp
    Combining object columns
    100 xp
    Setting the index
    100 xp
  2. 3

    Visual exploratory data analysis

    Are you more likely to get arrested at a certain time of day? Are drug-related stops on the rise? In this chapter, you will answer these and other questions by analyzing the dataset visually, since plots can help you to understand trends in a way that examining the raw data cannot.

    Play Chapter Now
  3. 4

    Analyzing the effect of weather on policing

    In this chapter, you will use a second dataset to explore the impact of weather conditions on police behavior during traffic stops. You will practice merging and reshaping datasets, assessing whether a data source is trustworthy, working with categorical data, and other advanced skills.

    Play Chapter Now
For Business

GroupTraining 2 or more people?

Get your team access to the full DataCamp library, with centralized reporting, assignments, projects and more

Datasets

Traffic stops in Rhode IslandWeather in Providence, Rhode Island

Collaborators

Collaborator's avatar
Becca Robins
Collaborator's avatar
Sara Snell
Kevin Markham HeadshotKevin Markham

Founder of Data School

See More

Don’t just take our word for it

*4.7
from 44 reviews
84%
9%
7%
0%
0%
Sort by
  • Jesus M.
    7 months

    A good case study with pandas

  • Laura G.
    8 months

    This is a great guided exercise that helps the student to practice and learn new search techniques. Congratulations!!!!

  • Indranil C.
    8 months

    Good organisation and good voice of the speaker

  • Martin B.
    8 months

    Exceptional guidance! He explained stuff so well, it was among the best 5 datacamp courses I ever attended.

  • Rob A.
    about 1 year

    Everything is super

"A good case study with pandas"

Jesus M.

"This is a great guided exercise that helps the student to practice and learn new search techniques. Congratulations!!!!"

Laura G.

"Good organisation and good voice of the speaker"

Indranil C.

Join over 13 million learners and start Analyzing Police Activity with pandas today!

Create Your Free Account

GoogleLinkedInFacebook

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.