From 9f72a8c94217f10b328b66bf0b93e14cff8fe914 Mon Sep 17 00:00:00 2001 From: salih Date: Sat, 14 Sep 2024 08:27:12 +0400 Subject: [PATCH] lab1-third commit --- laba1.ipynb => lab_1/laba1.ipynb | 26 ++++++-------------------- lab_1/requirements.txt | Bin 0 -> 1392 bytes requirements.txt | 6 ------ {data => static/csv}/Stores.csv | 0 4 files changed, 6 insertions(+), 26 deletions(-) rename laba1.ipynb => lab_1/laba1.ipynb (99%) create mode 100644 lab_1/requirements.txt delete mode 100644 requirements.txt rename {data => static/csv}/Stores.csv (100%) diff --git a/laba1.ipynb b/lab_1/laba1.ipynb similarity index 99% rename from laba1.ipynb rename to lab_1/laba1.ipynb index da246fc..a075dc6 100644 --- a/laba1.ipynb +++ b/lab_1/laba1.ipynb @@ -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": [ { diff --git a/lab_1/requirements.txt b/lab_1/requirements.txt new file mode 100644 index 0000000000000000000000000000000000000000..9d0e49a1a533b1ae79f0f9ae2dcceab5faf01c4f GIT binary patch literal 1392 zcmZvcQEu8`5QO)+QjbCvn~<~*y+dyh(cls%;JC(wki)l~Z^u7Q)e0Gb|Jj|{*|C5B zTE`(qeV*efn&|ZJt3Gvnifdg}e2foquhX5bA=a_i1>$N#+*}ZQos|>n>&r=({g0~e z^`BM0%6iVxh(0E9mzB=pagQcm6Ll1# z)tuX8LMIsO_@P>~(u0ZZ1wO1&tvj`;0=EXC8{wGxMyNWzBo@z%8si~*fDCcxY4~jx|bDgvI>bT3vPm`*WbnC(u+#xH2 z6tY2j(FuM$vOm4h)TxOVDKLg}W?QEA zZ*p`iM(1RnyvppAK4-b=`DgFY;tY@{C(p@Uq>JS6y*4;W0{p!uW2bZfG2YUTTKDR7 zr8siV^mWo(Ct@jt-ym?lN&C;K(&;YKALQC=p7@ELa{{x|P?XN^Cs20AZ-q|CjnuL$ v&gQ&~@^+n@;Vm>y`}7;cTg4aVB2zFrRb@Ws@}yMqbZvxqNJQCBHR<>R_Rh;? literal 0 HcmV?d00001 diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index b77468b..0000000 --- a/requirements.txt +++ /dev/null @@ -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 \ No newline at end of file diff --git a/data/Stores.csv b/static/csv/Stores.csv similarity index 100% rename from data/Stores.csv rename to static/csv/Stores.csv