From the course: Python Functions for Data Science

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Create a pandas series

Create a pandas series - Python Tutorial

From the course: Python Functions for Data Science

Start my 1-month free trial

Create a pandas series

- [Instructor] The pandas library is a powerful open source tool commonly used by data scientists. It provides data structures designed to make working with data easy and intuitive. Also, it contains functions that enable you to store, manipulate and analyze data. The two primary data structures of pandas are Series and DataFrame. A Series is a one-dimensional labeled array that can hold any data type. In this video, I'll be demonstrating how to create a Series using functions from pandas. First, I'm going to import the libraries I'll need in this notebook. I'll import numPy and give it the alias NP and I'll import pandas and give it the alias PD. To create a Series, I can call the series function and pass in data. The data can be in the form of An Array-Like Object, A Python Dictionary or A Scalar Value. For example, let's say that I want to create a Series containing eight random integers from negative 10 to 10…

Contents