I'm using pandas to read a CSV file through a URL in Python but I receive the following error:
NameError: name 'pandas' is not defined
I have installed pandas in command prompt and was successful. My code:
import pandas as pd
url = "https://community.watsonanalytics.com/wp-content/uploads/2015/04/WA_Fn-UseC_-Sales-Win-Loss.csv"
sales_data = pd.read_csv(url)