DEV Community

a.infosecflavour
a.infosecflavour

Posted on

Working with DataFrames in Pandas

HellO!👋

Today I'm back with a new notebook which demonstrates a way of working with data in Jupyter.

Source file

I downloaded the dataset from
Kaggle a platform to find real-world data and connect with other data enthusiasts.
There you will find an incredible collection of datasets and projects and you can also participate in competitions.

Short evidence of the work

img

clean

After I returned a concise summary of the dataframe I performed the cleaning of data, to get my data into a usable and consistent format for analysis

astype() method is used to convert a pandas object to a specified data type.

I used fillna(0) to get rid of the error that initially appeared. Try it yourself!

Where is the rest of the work? 💭

You can find more in my GitHub repository. Here I uploaded the notebook and of course the dataset. In short words, you will learn how to

  • load a dataframe,

  • examine its metadata,

  • convert data types

  • explore the dataframe using iloc indexing.
    More than that, you will learn about Boolean masking and...how to calculate the median value. 📚

Are you ready to explore the data?

explore

Billboard image

Imagine monitoring that's actually built for developers

Join Vercel, CrowdStrike, and thousands of other teams that trust Checkly to streamline monitor creation and configuration with Monitoring as Code.

Start Monitoring

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay