commit 2385c379df1cfcaee5437630fe6df0936eff210a Author: Шимченко Date: Wed Jul 2 13:10:37 2025 +0000 Загрузить файлы в «/» diff --git a/count_sum_pandas.py b/count_sum_pandas.py new file mode 100644 index 0000000..09da9a6 --- /dev/null +++ b/count_sum_pandas.py @@ -0,0 +1,4 @@ +import pandas as pd + +def count_sum(df: pd.DataFrame) -> pd.DataFrame: + return df.groupby('Товар')['Количество'].sum().reset_index() \ No newline at end of file