Bootcamps

Explore our extensive collection of courses designed to help you master various subjects and skills. Whether you're a beginner or an advanced learner, there's something here for everyone.

Academy

Learn live

Join us for our free workshops, webinars, and other events to learn more about our programs and get started on your journey to becoming a developer.

Upcoming live events

Learning library

For all the self-taught geeks out there, here is our content library with most of the learning materials we have produced throughout the years.

It makes sense to start learning by reading and watching videos about fundamentals and how things work.

Full-Stack Software Developer - 16w

Data Science and Machine Learning - 16 wks

Search from all Lessons


LoginGet Started

Register to 4Geeks

← Back to Exercises

Pandas for Machine Learning

Star

Difficulty

  • beginner

Average duration

3 hrs

Difficulty

  • beginner

Average duration

3 hrs

Weekly Coding Challenge

Every week, we pick a real-life project to build your portfolio and get ready for a job. All projects are built with ChatGPT as co-pilot!

Start the Challenge

Podcast: Code Sets You Free

A tech-culture podcast where you learn to fight the enemies that blocks your way to become a successful professional in tech.

Listen the podcast

Pandas is the best and most popular Python library for machine learning. This library offers a wide variety of functions that will help you manipulate data, optimize your machine-learning algorithm, and much more. This tutorial will help you to get familiar with this library and master the most used functionalities with code samples and video tutorials that will help you to create your first data frame, clean a dataset of information, read CSV files, etc...

The exercises in this tutorial have been created after about 60 hours of development by many experts in machine learning and carefully reviewed by our contributors to make sure you have the most accurate and important information that will help you start your machine learning career.

Content table

In this tutorial, we will see the most important and basic functions provided by Pandas that will help you work with data in machine learning. The following are some of the topics that will be covered in this tutorial.

ExerciseDescription of the topic
Install PandasThese exercises cover how to install Pandas, how to import the Pandas library in a Python file, and how to create your first Python script.
DataSetsThese exercises explain what datasets are and how to work with them.
SeriesThese exercises explain what Series are in Pandas and how to use them.
DataFramesThese exercises explain how to create an information DataFrame and what functions can be used to work with them.
Clean DataSetsThis class covers what data cleaning is, the functions Pandas offers to clean up a dataset, and the best practices to use when cleaning a dataset.

Tutorial Installation

There are two ways to initialize this tutorial, the first and easiest is to open the tutorial in a cloud environment such as Codespaces or Gitpod, and the second is to clone this repository in your local environment.

We recommend that you use Codespaces because it is the easiest and fastest way to start the tutorial.

1. Open the tutorial in a cloud environment

You can start this tutorial in just a few seconds with Codespaces by clicking on the following link: open in codespaces (recommended), or you can use Gitpod by clicking on: open in gitpod.

Once you have opened the cloud environment, either Codespaces or Gitpod, the LearnPack exercises should start automatically. If the exercises do not start automatically you can open a terminal and type the command: learnpack start

2. Open the tutorial in your local environment

To start this tutorial in your local environment, follow the steps below:

  1. Open a terminal and clone this repository on your local environment. You can use the following command:
1git clone https://github.com/4GeeksAcademy/python-pandas-tutorial.git
  1. Make sure you have installed a Node.js version of 12.01.1 or higher:
1node --version
  1. Install LearnPack, the package manager for learning tutorials, and also run the Python compiler plugin for LearnPack. You can do this with the following commands:
1> npm i learnpack -g 2> learnpack plugins:install learnpack-python
  1. Finally, Install Jest to perform the necessary tests throughout the tutorial and start the exercises with the following commands:
1> npm i jest@24.8.0 -g 2> learnpack start

Contributors

We would like to express our deepest gratitude to the following contributors for their invaluable support in making this tutorial possible.

ContributorGitHub account
Alejandro Sanchezalesanchezr
Martín Suárezkiddopro
Lorena GubairaLorenagubaira
Tomas Gonzaleztommygonzaleza
Hernán Garcíahernanjkd
Ernesto GonzalezUmiKami
Hector Chocobarhchocobar
Charly ChacónCharlytoc
Agustín FernándezDasher83
Ignacio Cordobanachovz

This tutorial and many other exercises are designed for students as part of the 4Geeks Academy's Coding Bootcamp. Currently, we have two courses available. The first one is the Full Stack Developer Course. In this course, you will learn technologies like HTML5, CSS3, JavaScript, Python, Flask, SQL and many others. The second one is the Data Science Bootcamp, where you will learn technologies like Python, Algorithms' basics, Pandas, SQL Database, and many other technologies. You can find more information about these courses and the upcoming Blockchain and Web3 course on the official 4Geeks Academy web page.

Sign up and get access to interactive tutorial

We will use it to give you access to your account.
Already have an account? Login here.

Difficulty

  • beginner

Average duration

3 hrs

Difficulty

  • beginner

Average duration

3 hrs

Difficulty

  • beginner

Average duration

3 hrs

Difficulty

  • beginner

Average duration

3 hrs

Sign up and get access to interactive tutorial

We will use it to give you access to your account.
Already have an account? Login here.

Difficulty

  • beginner

Average duration

3 hrs

Difficulty

  • beginner

Average duration

3 hrs

Weekly Coding Challenge

Every week, we pick a real-life project to build your portfolio and get ready for a job. All projects are built with ChatGPT as co-pilot!

Start the Challenge

Podcast: Code Sets You Free

A tech-culture podcast where you learn to fight the enemies that blocks your way to become a successful professional in tech.

Listen the podcast