Challenge: Data Visualization in pandas
Practice the topics we have covered so far related to Pandas for Data Visualization.
We'll cover the following...
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.
Press + to interact
import pandas as pdimport numpy as npimport matplotlib.pyplot as pltnp.random.seed(1)df = pd.DataFrame(np.random.rand(1000,4),columns=['a', 'b', 'c','d'])print(df.head())