How to import CSV file as a Python Pandas DataFrame?

To import CSV file as a Python Pandas DataFrame, we can use the read_csv method.

For instance, we write

import pandas as pd
print pd.read_csv('value.txt')

to call read_csv with the csv file path to import the CSV and return a data frame from it.