Question: class Data(): # points [1] def dataAllocation(self,path): # TODO: Separate out the x_data and y_data and return each # args: string path for .csv file

class Data(): # points [1] def dataAllocation(self,path): # TODO: Separate out the x_data and y_data and return each # args: string path for .csv file # return: pandas dataframe, pandas series # ------------------------------- data = pd.read_csv(path) x_data = data.drop(columns=['y']) y_data = data['y'] # ------------------------------- return x_data,y_data

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 Programming Questions!