Get startedGet started for free

Explore a pandas DataFrame

The pandas DataFrame is one of the most important (and most convenient) data structures in Python and especially in Data Science. Not only is the DataFrame structure itself in a familiar tabular format, the pandas package has several ways that allow quick DataFrame exploration. In this exercise, you'll use a (very) small set of the available methods and attributes in pandas to explore the avocados DataFrame.

This exercise is part of the course

Python for MATLAB Users

View Course

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Print the first five rows of avocados
print(avocados.____())
Edit and Run Code