

import matplotlib
#matplotlib.use('Agg')
import numpy as np
import matplotlib.pyplot as plt
plt.switch_backend('agg')
import pandas as pd



import warnings
warnings.filterwarnings('ignore')



# with open(csv_dataset_path) as module_1_inp:
# 	lines = module_1_inp.readlines()
#
# #only read the first line (in case it has multiples)
# csv_dataset_path = lines[0]

dataset = pd.read_csv(csv_dataset_path)


dataset_new= pd.get_dummies(dataset, columns=[feature])
dataset_new = dataset_new.drop(dataset_new.columns[dataset_new.columns.str.contains('unnamed',case = False)],axis = 1)



dataset_new.to_csv(dataset_with_new_categorical_vars)





