File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 47
47
"outputs" : [],
48
48
"source" : [
49
49
" def init(apply_pca=False):\n " ,
50
- " df = pd.read_csv('/home/agn/Desktop/Data_Science/Session_20 /blocks.csv')\n " ,
50
+ " df = pd.read_csv('dataset /blocks.csv')\n " ,
51
51
" y = df.iloc[:, 0] # select first column.\n " ,
52
52
" y = LabelEncoder().fit_transform(y) # Encoding labels to numbers.\n " ,
53
53
" X = df.iloc[:, 1:] # remove first column.\n " ,
182
182
{
183
183
"cell_type" : " code" ,
184
184
"execution_count" : 7 ,
185
- "metadata" : {},
185
+ "metadata" : {
186
+ "collapsed" : true
187
+ },
186
188
"outputs" : [
187
189
{
188
190
"name" : " stdout" ,
Original file line number Diff line number Diff line change 19
19
20
20
21
21
def init (apply_pca = False ):
22
- df = pd .read_csv ('/home/agn/Desktop/Data_Science/Session_20 /blocks.csv' )
22
+ df = pd .read_csv ('dataset /blocks.csv' )
23
23
y = df .iloc [:, 0 ] # select first column.
24
24
y = LabelEncoder ().fit_transform (y ) # Encoding labels to numbers.
25
25
X = df .iloc [:, 1 :] # remove first column.
You can’t perform that action at this time.
0 commit comments