{ "cells": [ { "cell_type": "code", "execution_count": 16, "id": "0cc6c719-864f-4591-ac6d-d5109f2a8ff2", "metadata": { "tags": [] }, "outputs": [], "source": [ "import numpy as np\n", "import pandas as pd\n" ] }, { "cell_type": "code", "execution_count": 17, "id": "14e514ae-83fd-4311-82dd-0f4a44a9a7b0", "metadata": { "tags": [] }, "outputs": [ { "data": { "text/plain": [ "4" ] }, "execution_count": 17, "metadata": {}, "output_type": "execute_result" } ], "source": [ "#1\n", "x = pd.read_excel('ООО_Внимание_к_деталям (2).xlsx')\n", "y = x.loc[x[\"Формат магазина\"] == \"Стрит\"]\n", "x_result = y['Формат магазина'].count()\n", "x_result" ] }, { "cell_type": "code", "execution_count": 18, "id": "fdf1aa6e-4524-4add-ae8d-8353d32c9da8", "metadata": { "tags": [] }, "outputs": [ { "data": { "text/plain": [ "157" ] }, "execution_count": 18, "metadata": {}, "output_type": "execute_result" } ], "source": [ "y = x.loc[x['Парковка'] == 'бесплатная парковка']\n", "z = x.loc[x['Парковка'] == 'бесплатная паpковка'] \n", "besplatnaya_parkovka1 = y['Парковка'].count()\n", "besplatnaya_parkovka2 = z['Парковка'].count()\n", "besplatnaya_parkovka1 + besplatnaya_parkovka2" ] } ], "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.11.5" } }, "nbformat": 4, "nbformat_minor": 5 }