From 1042593dda50eb61e461dc700b0cb558c9f2da22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9=20=D0=9E=D1=80?= =?UTF-8?q?=D0=BB=D0=BE=D0=B2?= Date: Sun, 18 May 2025 16:17:46 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=B2=D1=81=D0=B5=20=D1=84=D0=B0=D0=B9=D0=BB=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 ++ week2_analysis.ipynb | 94 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 97 insertions(+) create mode 100644 .gitignore create mode 100644 week2_analysis.ipynb diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..df2084b --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +.idea +.venv +.ipynb_checkpoints \ No newline at end of file diff --git a/week2_analysis.ipynb b/week2_analysis.ipynb new file mode 100644 index 0000000..84eab0a --- /dev/null +++ b/week2_analysis.ipynb @@ -0,0 +1,94 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "id": "17af6bbb-bd17-48d8-9c63-04fb9788c6d6", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Первый взгляд на данные:\n", + " Имя Возраст Баллы\n", + "0 Анна 21 89\n", + "1 Борис 22 76\n", + "2 Виктор 23 95\n", + "3 Галина 24 82\n", + "\n", + "RangeIndex: 4 entries, 0 to 3\n", + "Data columns (total 3 columns):\n", + " # Column Non-Null Count Dtype \n", + "--- ------ -------------- ----- \n", + " 0 Имя 4 non-null object\n", + " 1 Возраст 4 non-null int64 \n", + " 2 Баллы 4 non-null int64 \n", + "dtypes: int64(2), object(1)\n", + "memory usage: 228.0+ bytes\n", + "None\n", + " Возраст Баллы\n", + "count 4.000000 4.000000\n", + "mean 22.500000 85.500000\n", + "std 1.290994 8.266398\n", + "min 21.000000 76.000000\n", + "25% 21.750000 80.500000\n", + "50% 22.500000 85.500000\n", + "75% 23.250000 90.500000\n", + "max 24.000000 95.000000\n", + "Имя 0\n", + "Возраст 0\n", + "Баллы 0\n", + "dtype: int64\n" + ] + } + ], + "source": [ + "import pandas as pd\n", + "\n", + "# Создадим DataFrame\n", + "data = {\n", + " \"Имя\": [\"Анна\", \"Борис\", \"Виктор\", \"Галина\"],\n", + " \"Возраст\": [21, 22, 23, 24],\n", + " \"Баллы\": [89, 76, 95, 82]\n", + "}\n", + "df = pd.DataFrame(data)\n", + "\n", + "print(\"Первый взгляд на данные:\")\n", + "print(df.head())\n", + "print(df.info())\n", + "print(df.describe())\n", + "print(df.isnull().sum())" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "e95db8fc-fd66-449e-8d69-8c27094987aa", + "metadata": {}, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3 (ipykernel)", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.13.2" + } + }, + "nbformat": 4, + "nbformat_minor": 5 +}