Skip to content

Commit 2284df0

Browse files
committed
change project 2
1 parent e37ee0d commit 2284df0

1 file changed

Lines changed: 35 additions & 44 deletions

File tree

project 2.ipynb

Lines changed: 35 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
},
2727
{
2828
"cell_type": "code",
29-
"execution_count": 1,
29+
"execution_count": 2,
3030
"id": "383f4c4e",
3131
"metadata": {},
3232
"outputs": [
@@ -207,7 +207,7 @@
207207
"[478 rows x 6 columns]"
208208
]
209209
},
210-
"execution_count": 1,
210+
"execution_count": 2,
211211
"metadata": {},
212212
"output_type": "execute_result"
213213
}
@@ -222,7 +222,7 @@
222222
},
223223
{
224224
"cell_type": "code",
225-
"execution_count": 2,
225+
"execution_count": 3,
226226
"id": "0b211d5e",
227227
"metadata": {},
228228
"outputs": [
@@ -252,7 +252,7 @@
252252
},
253253
{
254254
"cell_type": "code",
255-
"execution_count": 3,
255+
"execution_count": 4,
256256
"id": "9c6f8357",
257257
"metadata": {},
258258
"outputs": [
@@ -287,7 +287,7 @@
287287
},
288288
{
289289
"cell_type": "code",
290-
"execution_count": 14,
290+
"execution_count": 5,
291291
"id": "ffe0a843",
292292
"metadata": {},
293293
"outputs": [
@@ -318,7 +318,6 @@
318318
" <th>sat_critical_reading_avg_score</th>\n",
319319
" <th>sat_math_avg_score</th>\n",
320320
" <th>sat_writing_avg_score</th>\n",
321-
" <th>total</th>\n",
322321
" <th>sat_total_score</th>\n",
323322
" </tr>\n",
324323
" </thead>\n",
@@ -332,7 +331,6 @@
332331
" <td>404.0</td>\n",
333332
" <td>363.0</td>\n",
334333
" <td>1122.0</td>\n",
335-
" <td>1122.0</td>\n",
336334
" </tr>\n",
337335
" <tr>\n",
338336
" <th>1</th>\n",
@@ -343,7 +341,6 @@
343341
" <td>423.0</td>\n",
344342
" <td>366.0</td>\n",
345343
" <td>1172.0</td>\n",
346-
" <td>1172.0</td>\n",
347344
" </tr>\n",
348345
" <tr>\n",
349346
" <th>2</th>\n",
@@ -354,7 +351,6 @@
354351
" <td>402.0</td>\n",
355352
" <td>370.0</td>\n",
356353
" <td>1149.0</td>\n",
357-
" <td>1149.0</td>\n",
358354
" </tr>\n",
359355
" <tr>\n",
360356
" <th>3</th>\n",
@@ -365,7 +361,6 @@
365361
" <td>401.0</td>\n",
366362
" <td>359.0</td>\n",
367363
" <td>1174.0</td>\n",
368-
" <td>1174.0</td>\n",
369364
" </tr>\n",
370365
" <tr>\n",
371366
" <th>4</th>\n",
@@ -376,7 +371,6 @@
376371
" <td>433.0</td>\n",
377372
" <td>384.0</td>\n",
378373
" <td>1207.0</td>\n",
379-
" <td>1207.0</td>\n",
380374
" </tr>\n",
381375
" <tr>\n",
382376
" <th>...</th>\n",
@@ -387,7 +381,6 @@
387381
" <td>...</td>\n",
388382
" <td>...</td>\n",
389383
" <td>...</td>\n",
390-
" <td>...</td>\n",
391384
" </tr>\n",
392385
" <tr>\n",
393386
" <th>466</th>\n",
@@ -398,7 +391,6 @@
398391
" <td>358.0</td>\n",
399392
" <td>350.0</td>\n",
400393
" <td>1055.0</td>\n",
401-
" <td>1055.0</td>\n",
402394
" </tr>\n",
403395
" <tr>\n",
404396
" <th>467</th>\n",
@@ -409,7 +401,6 @@
409401
" <td>317.0</td>\n",
410402
" <td>358.0</td>\n",
411403
" <td>1034.0</td>\n",
412-
" <td>1034.0</td>\n",
413404
" </tr>\n",
414405
" <tr>\n",
415406
" <th>471</th>\n",
@@ -420,7 +411,6 @@
420411
" <td>444.0</td>\n",
421412
" <td>433.0</td>\n",
422413
" <td>1306.0</td>\n",
423-
" <td>1306.0</td>\n",
424414
" </tr>\n",
425415
" <tr>\n",
426416
" <th>476</th>\n",
@@ -431,7 +421,6 @@
431421
" <td>400.0</td>\n",
432422
" <td>426.0</td>\n",
433423
" <td>1322.0</td>\n",
434-
" <td>1322.0</td>\n",
435424
" </tr>\n",
436425
" <tr>\n",
437426
" <th>477</th>\n",
@@ -442,11 +431,10 @@
442431
" <td>370.0</td>\n",
443432
" <td>360.0</td>\n",
444433
" <td>1097.0</td>\n",
445-
" <td>1097.0</td>\n",
446434
" </tr>\n",
447435
" </tbody>\n",
448436
"</table>\n",
449-
"<p>421 rows × 8 columns</p>\n",
437+
"<p>421 rows × 7 columns</p>\n",
450438
"</div>"
451439
],
452440
"text/plain": [
@@ -476,23 +464,23 @@
476464
"476 8 496.0 \n",
477465
"477 9 367.0 \n",
478466
"\n",
479-
" sat_math_avg_score sat_writing_avg_score total sat_total_score \n",
480-
"0 404.0 363.0 1122.0 1122.0 \n",
481-
"1 423.0 366.0 1172.0 1172.0 \n",
482-
"2 402.0 370.0 1149.0 1149.0 \n",
483-
"3 401.0 359.0 1174.0 1174.0 \n",
484-
"4 433.0 384.0 1207.0 1207.0 \n",
485-
".. ... ... ... ... \n",
486-
"466 358.0 350.0 1055.0 1055.0 \n",
487-
"467 317.0 358.0 1034.0 1034.0 \n",
488-
"471 444.0 433.0 1306.0 1306.0 \n",
489-
"476 400.0 426.0 1322.0 1322.0 \n",
490-
"477 370.0 360.0 1097.0 1097.0 \n",
467+
" sat_math_avg_score sat_writing_avg_score sat_total_score \n",
468+
"0 404.0 363.0 1122.0 \n",
469+
"1 423.0 366.0 1172.0 \n",
470+
"2 402.0 370.0 1149.0 \n",
471+
"3 401.0 359.0 1174.0 \n",
472+
"4 433.0 384.0 1207.0 \n",
473+
".. ... ... ... \n",
474+
"466 358.0 350.0 1055.0 \n",
475+
"467 317.0 358.0 1034.0 \n",
476+
"471 444.0 433.0 1306.0 \n",
477+
"476 400.0 426.0 1322.0 \n",
478+
"477 370.0 360.0 1097.0 \n",
491479
"\n",
492-
"[421 rows x 8 columns]"
480+
"[421 rows x 7 columns]"
493481
]
494482
},
495-
"execution_count": 14,
483+
"execution_count": 5,
496484
"metadata": {},
497485
"output_type": "execute_result"
498486
}
@@ -515,7 +503,7 @@
515503
},
516504
{
517505
"cell_type": "code",
518-
"execution_count": 5,
506+
"execution_count": 6,
519507
"id": "dfa972c0",
520508
"metadata": {},
521509
"outputs": [
@@ -889,7 +877,7 @@
889877
"[1000 rows x 38 columns]"
890878
]
891879
},
892-
"execution_count": 5,
880+
"execution_count": 6,
893881
"metadata": {},
894882
"output_type": "execute_result"
895883
}
@@ -901,7 +889,7 @@
901889
},
902890
{
903891
"cell_type": "code",
904-
"execution_count": 6,
892+
"execution_count": 7,
905893
"id": "283ea5f7",
906894
"metadata": {},
907895
"outputs": [
@@ -1275,7 +1263,7 @@
12751263
"[151 rows x 38 columns]"
12761264
]
12771265
},
1278-
"execution_count": 6,
1266+
"execution_count": 7,
12791267
"metadata": {},
12801268
"output_type": "execute_result"
12811269
}
@@ -1288,7 +1276,7 @@
12881276
},
12891277
{
12901278
"cell_type": "code",
1291-
"execution_count": 27,
1279+
"execution_count": 8,
12921280
"id": "ccd77861",
12931281
"metadata": {},
12941282
"outputs": [
@@ -1408,7 +1396,7 @@
14081396
"[67 rows x 2 columns]"
14091397
]
14101398
},
1411-
"execution_count": 27,
1399+
"execution_count": 8,
14121400
"metadata": {},
14131401
"output_type": "execute_result"
14141402
}
@@ -1422,7 +1410,7 @@
14221410
},
14231411
{
14241412
"cell_type": "code",
1425-
"execution_count": null,
1413+
"execution_count": 9,
14261414
"id": "85e30f1c",
14271415
"metadata": {},
14281416
"outputs": [
@@ -1433,10 +1421,10 @@
14331421
"<class 'pandas.core.frame.DataFrame'>\n",
14341422
"RangeIndex: 67 entries, 0 to 66\n",
14351423
"Data columns (total 2 columns):\n",
1436-
" # Column Non-Null Count Dtype \n",
1437-
"--- ------ -------------- ----- \n",
1438-
" 0 sat_total_score 67 non-null float64\n",
1439-
" 1 frl_percent 67 non-null float64\n",
1424+
" # Column Non-Null Count Dtype \n",
1425+
"--- ------ -------------- ----- \n",
1426+
" 0 sat_total_score 67 non-null float64\n",
1427+
" 1 the percentage of students who receive free or reduced lunch 67 non-null float64\n",
14401428
"dtypes: float64(2)\n",
14411429
"memory usage: 1.2 KB\n"
14421430
]
@@ -1448,7 +1436,7 @@
14481436
},
14491437
{
14501438
"cell_type": "code",
1451-
"execution_count": 29,
1439+
"execution_count": null,
14521440
"id": "963785fa",
14531441
"metadata": {},
14541442
"outputs": [
@@ -2316,6 +2304,9 @@
23162304
}
23172305
],
23182306
"source": [
2307+
"import plotly.io as pio\n",
2308+
"pio.renderers.default = \"jupyterlab\"\n",
2309+
"\n",
23192310
"import plotly.express as px\n",
23202311
"figure = px.scatter(df_merge_sorted,\n",
23212312
" x=\"the percentage of students who receive free or reduced lunch\",\n",

0 commit comments

Comments
 (0)