From the course: Python for Marketing (2019)

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Import, explore, and plot a basic chart

Import, explore, and plot a basic chart - Python Tutorial

From the course: Python for Marketing (2019)

Import, explore, and plot a basic chart

- [Instructor] Let's begin by importing the libraries we're going to need and plotting a basic visualization. So we're using pandas, so import pandas as pd, import matplotlib.pyplot as plt, import seaborn as sns, and use a magic command matplotlib.inline, so we can plot the charts in our workbooks. I'm also importing warnings, but you probably don't need this. Basically, there's an error message, it keeps coming up on my machine, that I don't need to be seeing. Run this, okay and let's import our data. We are importing the ga_gsc, so that's Google Analytics, Google search console data. We're using Panda's read CSV function. We're passing the fail path, and then we're using these columns. There are columns in there which we do not want to visual. We only want to work with these ones. Now let's inspect this data. Okay, we have float and start in three objects. We should only have one object, so that should be page, but…

Contents