MasteringJupyterLab/week2_analysis.ipynb
2026-05-06 13:39:20 +03:00

56 lines
1.2 KiB
Plaintext

{
"cells": [
{
"metadata": {
"ExecuteTime": {
"end_time": "2026-05-06T10:38:33.878810200Z",
"start_time": "2026-05-06T10:38:32.583254900Z"
}
},
"cell_type": "code",
"source": [
"from tqdm import tqdm\n",
"import time\n",
"import pandas as pd\n",
"\n",
"df = pd.DataFrame({'col': range(100)})\n",
"\n",
"for index, row in tqdm(df.iterrows(), total=df.shape[0], desc='Загрузка'):\n",
" time.sleep(0.01) # Симуляция процесса"
],
"id": "736569fcf9fa5fbe",
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"Загрузка: 100%|██████████| 100/100 [00:01<00:00, 79.61it/s]\n"
]
}
],
"execution_count": 12
}
],
"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.14.4"
}
},
"nbformat": 4,
"nbformat_minor": 5
}