Search⌘ K

Challenge: Data Visualization in pandas

Explore how to use Pandas' visualization tools to create scatter plots and histograms from DataFrame data. Learn to customize plot size, point size, color, and styles while practicing data visualization techniques using Python and Matplotlib integration.

Please follow the instructions while solving the exercises. If you are new to matplotlib, the tasks may be tricky. You can always refer to the solutions if you get stuck.

Creating a DataFrame

The code segment below is used to create our DataFrame and print the head() of it.

Python 3.5
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
np.random.seed(1)
df = pd.DataFrame(np.random.rand(1000,4),columns=['a', 'b', 'c','d'])
print(df.head())

Task 1: Plot DataFrame as a scatter plot

...