lab1-third commit
This commit is contained in:
parent
17af8a6534
commit
9f72a8c942
@ -2,28 +2,14 @@
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 49,
|
||||
"execution_count": 8,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
" Store_Area Items_Available Daily_Customer_Count Store_Sales\n",
|
||||
"Store ID \n",
|
||||
"1 1659 1961 530 66490\n",
|
||||
"2 1461 1752 210 39820\n",
|
||||
"3 1340 1609 720 54010\n",
|
||||
"4 1451 1748 620 53730\n",
|
||||
"5 1770 2111 450 46620\n",
|
||||
"... ... ... ... ...\n",
|
||||
"892 1582 1910 1080 66390\n",
|
||||
"893 1387 1663 850 82080\n",
|
||||
"894 1200 1436 1060 76440\n",
|
||||
"895 1299 1560 770 96610\n",
|
||||
"896 1174 1429 1110 54340\n",
|
||||
"\n",
|
||||
"[896 rows x 4 columns] \n",
|
||||
"Index(['Store_Area', 'Items_Available', 'Daily_Customer_Count', 'Store_Sales'], dtype='object') \n",
|
||||
"\n"
|
||||
]
|
||||
},
|
||||
@ -43,9 +29,9 @@
|
||||
"import pandas as pd \n",
|
||||
"import matplotlib.pyplot as plt\n",
|
||||
"\n",
|
||||
"df = pd.read_csv(\"data/Stores.csv\", index_col=\"Store ID \")\n",
|
||||
"df = pd.read_csv(\"..//static//csv//Stores.csv\", index_col=\"Store ID \")\n",
|
||||
"\n",
|
||||
"print(df, \"\\n\")\n",
|
||||
"print(df.columns, \"\\n\")\n",
|
||||
"\n",
|
||||
"df[\"Gr\"] = df[\"Store_Sales\"].apply(lambda x: \"Award\" if x > 70000 else \"Normal\")\n",
|
||||
"\n",
|
||||
@ -78,7 +64,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 50,
|
||||
"execution_count": 9,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
@ -119,7 +105,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 51,
|
||||
"execution_count": 10,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
BIN
lab_1/requirements.txt
Normal file
BIN
lab_1/requirements.txt
Normal file
Binary file not shown.
@ -1,6 +0,0 @@
|
||||
numpy==2.1.1
|
||||
jupyter_client==8.6.2
|
||||
jupyter_core==5.7.2
|
||||
matplotlib-inline==0.1.7
|
||||
pandas==2.2.2
|
||||
matplotlib==3.9.2
|
Loading…
Reference in New Issue
Block a user