Indexing and Slicing

Let's learn how to index data in Pandas.

Get a single column

Getting a column from pandas is very simple, just use the [] operation with the column name or column index, and the column is returned as a Series.

Get hands-on with 1200+ tech skills courses.