import pandas as pd
import matplotlib.pyplot as plt
import matplotlib
from pandas.tools.plotting import parallel_coordinates

# Look pretty...
matplotlib.style.use('ggplot')


#
# TODO: Load up the Seeds Dataset into a Dataframe
# It's located at 'Datasets/wheat.data'
# 
# .. your code here ..

wheat_dataset=pd.read_csv('/Users/ADB3HAMADL/Desktop/Anaconda_Packages/DAT210x-master/Module3/Datasets/wheat.data',index_col = 0)
#print(wheat_dataset)
#
# TODO: Drop the 'id', 'area', and 'perimeter' feature
# 
# .. your code here .

#New_wheat_dataset=wheat_dataset.drop(wheat_dataset.columns[[0,1]], axis=1) #deleting columns by indeices
'''
wheat_dataset.set_index('id', inplace=True)

wheat_dataset = wheat_dataset.rename_axis(None)


New_wheat_dataset=wheat_dataset.drop(['area', 'perimeter'], axis=1) #deleting columns by labels

print(New_wheat_dataset)
'''
New_wheat_dataset=wheat_dataset.drop(['area', 'perimeter'], axis=1) #deleting columns by labels
#
# TODO: Plot a parallel coordinates chart grouped by
# the 'wheat_type' feature. Be sure to set the optional
# display parameter alpha to 0.4
# 
# .. your code here ..


# Load up SKLearn's Iris Dataset into a Pandas Dataframe
data = load_iris()

# Parallel Coordinates Start Here:
plt.figure()
parallel_coordinates(New_wheat_dataset, 'wheat_type',alpha= 0.4)
plt.show()



@@ -528,13 +528,8 @@
  .%0A%0A
-#New_
 whea
@@ -529,33 +529,35 @@
 .%0A%0Awheat_dataset
-=
+ = 
 wheat_dataset.dr
@@ -558,178 +558,30 @@
 set.
-drop(wheat_dataset.columns%5B%5B0,1%5D%5D, axis=1) #deleting columns by indeices%0A'''%0Awheat_dataset.set_index('id', inplace=True)%0A%0Awheat_dataset = wheat_dataset.rename_axis(None)%0A
+reset_index(drop=True)
 %0A%0ANe
@@ -675,22 +675,17 @@
 labels%0A%0A
-print(
+#
 New_whea
@@ -697,18 +697,9 @@
 aset
-)%0A'''%0ANew_
+=
 whea
@@ -699,33 +699,38 @@
 et=wheat_dataset
-=
+.drop(
 wheat_dataset.dr
@@ -731,33 +731,21 @@
 set.
-drop(%5B'area', 'perimeter'
+columns%5B%5B0,1%5D
 %5D, a
@@ -772,21 +772,23 @@
 umns by 
-label
+indeice
 s%0A#%0A# TO

Update assignment4.py