Question: Mini - Project 3 Restaurant Tips Accessing data is a necessary first step for using most of the tools we have learned so far. In

Mini-Project 3
Restaurant Tips
Accessing data is a necessary first step for using most of the tools we have learned so far. In this mini-
project, we will use comma-separated form file that can be loaded into a DataFrame with
pandas.read_csv. We then use the dataset to do some data analysis and visualization using pandas.
Typically, the file will not always have a header row.
Consider an excel file: ex1.csv with the following cells:
1,2,3,4, hello
5,6,7,8, world
9,10,11,12, foo
To read this file from your local drive and path, you can allow pandas to assign default column names:
In: pd.read_csv('C:/Users/mowaf/Data/ex1.csv', header=None)
Out:
01234
01234 hello
15678 world
29101112 foo
Or you can specify names yourself:
In: pd.read_csv('C:/Users/mowaf/Data ex1.csv', names=['a','b','c','d', 'message'])
Out:
a bcd message
01234 hello
15678 world
29101112 foo
 Mini-Project 3 Restaurant Tips Accessing data is a necessary first step

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!