How to read in a CSV file into python

import numpy as np
import pandas as pd
import matplotlib.pyplot as plt

%matplotlib inline

sales = pd.read_csv(
    'data/sales_data.csv',
    parse_dates=['Date'])

In Jupyter Notebook, In order to see a preview of a data in a inline block , you must run the following command in order to see it

!head data/sales_data.csv

Data-frame -

In order to view the data like this, we can use the following command :

sales.head()

A data set will have X certain rows and y certain columns. To check how many rows and columns a data set has we do the following :

sales.shape

OUTPUT : (113036, 18)

In order to check the properties of the data you're working with , you can run the following command which gives you info about the data :

sales.info()

To check the statistical data about the data set, we can use the command describe which tells us statistical properties.

sales.describe()

Numerical Analysis and visualization -