
class data_preparer():
    def __init__():
    

import csv
import pandas

class data_preparer():
    def __init__(self):
        pass
    def load(self, filename):
        # X = pandas.DataFrame()
        # with open(filename) as csvfile:
        #     filereader = csv.reader(csvfile,delimiter=',')
        X = pandas.read_csv(filename)
        return X

Use 'pandas.read_csv' method to create dataframe
feat: Use 'pandas.read_csv' method to create dataframe

+ import csv
+ import pandas
  
  class data_preparer():
-     def __init__():
+     def __init__(self):
-     
+         pass
+     def load(self, filename):
+         # X = pandas.DataFrame()
+         # with open(filename) as csvfile:
+         #     filereader = csv.reader(csvfile,delimiter=',')
+         X = pandas.read_csv(filename)
+         return X
  
Use 'pandas.read_csv' method to create dataframe
## Code Before:

class data_preparer():
    def __init__():
    

## Instruction:
Use 'pandas.read_csv' method to create dataframe
## Code After:
import csv
import pandas

class data_preparer():
    def __init__(self):
        pass
    def load(self, filename):
        # X = pandas.DataFrame()
        # with open(filename) as csvfile:
        #     filereader = csv.reader(csvfile,delimiter=',')
        X = pandas.read_csv(filename)
        return X
