добавил задание 2
This commit is contained in:
parent
8d5a2e07b8
commit
728176e396
5
practic02/.idea/.gitignore
generated
vendored
Normal file
5
practic02/.idea/.gitignore
generated
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# Editor-based HTTP Client requests
|
||||
/httpRequests/
|
||||
6
practic02/.idea/inspectionProfiles/profiles_settings.xml
generated
Normal file
6
practic02/.idea/inspectionProfiles/profiles_settings.xml
generated
Normal file
@ -0,0 +1,6 @@
|
||||
<component name="InspectionProjectProfileManager">
|
||||
<settings>
|
||||
<option name="USE_PROJECT_PROFILE" value="false" />
|
||||
<version value="1.0" />
|
||||
</settings>
|
||||
</component>
|
||||
7
practic02/.idea/misc.xml
generated
Normal file
7
practic02/.idea/misc.xml
generated
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Black">
|
||||
<option name="sdkName" value="Python 3.12 (practic01)" />
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.12 (practic01)" project-jdk-type="Python SDK" />
|
||||
</project>
|
||||
8
practic02/.idea/modules.xml
generated
Normal file
8
practic02/.idea/modules.xml
generated
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/practic01.iml" filepath="$PROJECT_DIR$/.idea/practic01.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
1015
practic02/Untitled.ipynb
Normal file
1015
practic02/Untitled.ipynb
Normal file
File diff suppressed because one or more lines are too long
118
practic02/Untitled1.ipynb
Normal file
118
practic02/Untitled1.ipynb
Normal file
@ -0,0 +1,118 @@
|
||||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"id": "1ee541e1-eb8a-4ece-91f7-009bacc711ed",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"Начинаем обработку DataFrame...\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"application/vnd.jupyter.widget-view+json": {
|
||||
"model_id": "8776cf678207472e9abf4781522d710e",
|
||||
"version_major": 2,
|
||||
"version_minor": 0
|
||||
},
|
||||
"text/plain": [
|
||||
"Анализ строк: 0%| | 0/100 [00:00<?, ?it/s]"
|
||||
]
|
||||
},
|
||||
"metadata": {},
|
||||
"output_type": "display_data"
|
||||
},
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"\n",
|
||||
"==============================\n",
|
||||
"\n",
|
||||
"Запуск кастомного процесса...\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"application/vnd.jupyter.widget-view+json": {
|
||||
"model_id": "a529304207da48d4b0829392fccae530",
|
||||
"version_major": 2,
|
||||
"version_minor": 0
|
||||
},
|
||||
"text/plain": [
|
||||
"Загрузка нейросети: 0%| | 0/100 [00:00<?, ? слоев/s]"
|
||||
]
|
||||
},
|
||||
"metadata": {},
|
||||
"output_type": "display_data"
|
||||
},
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"Готово!\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"import pandas as pd\n",
|
||||
"import numpy as np\n",
|
||||
"from tqdm.auto import tqdm \n",
|
||||
"import time\n",
|
||||
"df = pd.DataFrame({\n",
|
||||
" 'ID': range(1, 101),\n",
|
||||
" 'Data': np.random.randn(100)\n",
|
||||
"})\n",
|
||||
"print(\"Начинаем обработку DataFrame...\")\n",
|
||||
"for index, row in tqdm(df.iterrows(), total=df.shape[0], desc=\"Анализ строк\"):\n",
|
||||
" \n",
|
||||
" time.sleep(0.02) \n",
|
||||
" \n",
|
||||
"print(\"\\n\" + \"=\"*30 + \"\\n\")\n",
|
||||
"print(\"Запуск кастомного процесса...\")\n",
|
||||
"\n",
|
||||
"for i in tqdm(range(100), \n",
|
||||
" desc='Загрузка нейросети', \n",
|
||||
" unit=' слоев', \n",
|
||||
" colour='green'):\n",
|
||||
" time.sleep(0.03)\n",
|
||||
"\n",
|
||||
"print(\"Готово!\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "453def08-cb24-474e-a8bf-19eecdb3726d",
|
||||
"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.12.1"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 5
|
||||
}
|
||||
202
practic02/Untitled2.ipynb
Normal file
202
practic02/Untitled2.ipynb
Normal file
File diff suppressed because one or more lines are too long
26
practic02/books.csv
Normal file
26
practic02/books.csv
Normal file
@ -0,0 +1,26 @@
|
||||
title,popularity,vote_average,vote_count,release_year
|
||||
1984,95.2,8.7,25000,1949
|
||||
The Great Gatsby,68.4,8.4,18000,1925
|
||||
To Kill a Mockingbird,82.1,8.8,22000,1960
|
||||
Harry Potter and the Philosopher's Stone,210.5,8.5,35000,1997
|
||||
The Hobbit,145.3,8.6,28000,1937
|
||||
The Catcher in the Rye,55.8,7.9,15000,1951
|
||||
The Alchemist,120.4,8.1,19000,1988
|
||||
Pride and Prejudice,75.9,8.7,14000,1813
|
||||
The Da Vinci Code,90.2,7.2,12000,2003
|
||||
The Lord of the Rings: The Fellowship of the Ring,185.7,8.9,31000,1954
|
||||
Dune,160.4,8.4,20000,1965
|
||||
The Little Prince,45.6,8.8,11000,1943
|
||||
Brave New World,52.3,8.2,13000,1932
|
||||
Fahrenheit 451,60.1,8.3,16000,1953
|
||||
The Hunger Games,130.8,8.0,24000,2008
|
||||
The Book Thief,42.5,8.6,10500,2005
|
||||
Animal Farm,38.7,8.5,12500,1945
|
||||
Crime and Punishment,33.2,8.7,9500,1866
|
||||
Sapiens: A Brief History of Humankind,140.2,8.4,17000,2011
|
||||
A Game of Thrones,195.4,8.8,29000,1996
|
||||
The Shining,50.2,8.4,14000,1977
|
||||
Don Quixote,28.4,8.2,8000,1605
|
||||
The Chronicles of Narnia,88.1,8.1,15500,1950
|
||||
Normal People,95.4,7.8,13000,2018
|
||||
The Kite Runner,40.5,8.6,11000,2003
|
||||
|
Loading…
Reference in New Issue
Block a user