Where to find the raw data in the course notebook

Hi all,

I am learning Machine learning Unit 2. May I please ask where can I FIND the csv file in the line in the following code: data = pd.read_csv(‘dataset/test_brakes.csv’)? Seems this is not in the catkin_ws space.

%matplotlib inline
import warnings
import matplotlib
import matplotlib.pyplot as plt
from matplotlib import cm
from mpl_toolkits.mplot3d import Axes3D
import numpy as np
import pandas as pd

load dataset

data = pd.read_csv(‘dataset/test_brakes.csv’)
#data = pd.read_csv(’/home/user/catkin_ws/src/results/test.csv’)

remove Unmaned column

data.drop([‘Unnamed: 0’], axis=1, inplace=True)

print dataset

plt.figure(figsize=(10, 8))
plt.xlabel("% of max speed of axis 1", fontsize=16)
plt.ylabel(“stop distance [deg]”, fontsize=16)
plt.title(“Dataset”, fontsize=18)


And when I change data = pd.read_csv(‘dataset/test_brakes.csv’) to
data = pd.read_csv(’/home/user/catkin_ws/src/results/test.csv’)
It throws the following errors:
KeyError: “[‘Unnamed: 0’] not found in axis”

Can any of you help? My pose is to run this course on my own ubuntu PC. Cheers

Hello @stevensu1838 ,

There was an error in the course with the datasets. I’ve just updated everything so that this doesn’t happen again. You will find these datasets in the course repo, here: Bitbucket

You will have to download this repo again in order to get the latest changes. The notebooks have also been modified so that they now take the data from this repo.