Solution: Data Visualization in pandas

Let’s look at the solution to the above tasks.

Task 1: Plot DataFrame as a scatter plot

We have four columns—a, b, c, and d. Plot c against d as a scatter plot to recreate the given plot. Try to match the color and size of the data points. You should be able to check the size of the figure as well.

Values used for the figure.

  • Figure size: 10,4
  • Size of data points: s=40.

Get hands-on with 1200+ tech skills courses.