From c08a48363ff19ddd62cce3587d9ba064b74730a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=BE=D0=B9=D1=82=D0=B5=D0=BD=D0=BA=D0=BE?= Date: Tue, 5 May 2026 12:50:21 +0000 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20=D0=97=D0=B0=D0=B4=D0=B0=D0=BD=D0=B8=D0=B5=201?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Задание 1 | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Задание 1 diff --git a/Задание 1 b/Задание 1 new file mode 100644 index 0000000..55e98e5 --- /dev/null +++ b/Задание 1 @@ -0,0 +1,7 @@ +python + +import pandas as pd + +def count-sum(df: pd.DataFrame) -> pd.DataFrame + result = df.groupby('Товар')['Количество'].sum().to_frame() + return result \ No newline at end of file