diff --git a/BMI_Calc_1/README.md b/BMI_Calc_1/README.md
index e69de29..3f05dd0 100644
--- a/BMI_Calc_1/README.md
+++ b/BMI_Calc_1/README.md
@@ -0,0 +1 @@
+Выполнил
\ No newline at end of file
diff --git a/BMI_Calc_1/main.py b/BMI_Calc_1/main.py
index ef6e69c..6742436 100644
--- a/BMI_Calc_1/main.py
+++ b/BMI_Calc_1/main.py
@@ -1,7 +1,11 @@
-def calculate_bmi(weight, height):
+def calculate_bmi(weight, height_cm):
try:
weight = float(weight)
- height = float(height)
+ height = float(height_cm) / 100
+
+ if height == 0:
+ raise ZeroDivisionError
+
bmi = weight / (height ** 2)
return bmi
except ValueError:
@@ -9,16 +13,24 @@ def calculate_bmi(weight, height):
except ZeroDivisionError:
return None
+
def main():
- weight = input("Введите вес (кг): ")
- height = input("Введите рост (м): ")
+ try:
+ weight = float(input("Введите вес (кг): "))
+ height_cm = float(input("Введите рост (см): "))
- bmi = calculate_bmi(weight, height)
+ if weight <= 0 or height_cm <= 0:
+ raise ValueError
- if bmi is not None:
- print(f"Индекс массы тела (BMI): {bmi:.2f}")
- else:
+ bmi = calculate_bmi(weight, height_cm)
+
+ if bmi is not None:
+ print(f"Индекс массы тела (BMI): {bmi:.2f}")
+ else:
+ print("Ошибка: введены некорректные данные!")
+ except ValueError:
print("Ошибка: введены некорректные данные!")
+
if __name__ == "__main__":
main()
diff --git a/interactive_graphics/graphics/__init__.py b/interactive_graphics/graphics/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/interactive_graphics/graphics/admin.py b/interactive_graphics/graphics/admin.py
new file mode 100644
index 0000000..8c38f3f
--- /dev/null
+++ b/interactive_graphics/graphics/admin.py
@@ -0,0 +1,3 @@
+from django.contrib import admin
+
+# Register your models here.
diff --git a/interactive_graphics/graphics/apps.py b/interactive_graphics/graphics/apps.py
new file mode 100644
index 0000000..20cbe35
--- /dev/null
+++ b/interactive_graphics/graphics/apps.py
@@ -0,0 +1,6 @@
+from django.apps import AppConfig
+
+
+class GraphicsConfig(AppConfig):
+ default_auto_field = 'django.db.models.BigAutoField'
+ name = 'graphics'
diff --git a/interactive_graphics/graphics/migrations/__init__.py b/interactive_graphics/graphics/migrations/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/interactive_graphics/graphics/models.py b/interactive_graphics/graphics/models.py
new file mode 100644
index 0000000..71a8362
--- /dev/null
+++ b/interactive_graphics/graphics/models.py
@@ -0,0 +1,3 @@
+from django.db import models
+
+# Create your models here.
diff --git a/interactive_graphics/graphics/templates/graphics/interactive_graphic.html b/interactive_graphics/graphics/templates/graphics/interactive_graphic.html
new file mode 100644
index 0000000..f65de3f
--- /dev/null
+++ b/interactive_graphics/graphics/templates/graphics/interactive_graphic.html
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+ Interactive Graph
+
+
+ {{ graph_html|safe }}
+
+
\ No newline at end of file
diff --git a/interactive_graphics/graphics/tests.py b/interactive_graphics/graphics/tests.py
new file mode 100644
index 0000000..7ce503c
--- /dev/null
+++ b/interactive_graphics/graphics/tests.py
@@ -0,0 +1,3 @@
+from django.test import TestCase
+
+# Create your tests here.
diff --git a/interactive_graphics/graphics/urls.py b/interactive_graphics/graphics/urls.py
new file mode 100644
index 0000000..436c1bc
--- /dev/null
+++ b/interactive_graphics/graphics/urls.py
@@ -0,0 +1,8 @@
+# fmt: off
+
+from django.urls import path
+from . import views
+
+urlpatterns = [
+ path('interactive_graph/', views.interactive_graphic, name='interactive_graphic'),
+]
\ No newline at end of file
diff --git a/interactive_graphics/graphics/views.py b/interactive_graphics/graphics/views.py
new file mode 100644
index 0000000..7eb6d48
--- /dev/null
+++ b/interactive_graphics/graphics/views.py
@@ -0,0 +1,15 @@
+
+from django.shortcuts import render
+import plotly.offline as opy
+import plotly.graph_objs as go
+
+
+def interactive_graphic(request):
+ x = list(range(-10, 15))
+ y = [2 * val for val in x]
+ fig = go.Figure(data=go.Scatter(x=x, y=y, mode='lines+markers'))
+ fig.update_layout(title='Интерактивный график функции y = 2x',
+ xaxis_title='x', yaxis_title='y')
+
+ graph_html = opy.plot(fig, auto_open=False, output_type='div')
+ return render(request, 'graphics/interactive_graphic.html', {'graph_html': graph_html})
diff --git a/interactive_graphics/interactive_graphics/__init__.py b/interactive_graphics/interactive_graphics/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/interactive_graphics/interactive_graphics/asgi.py b/interactive_graphics/interactive_graphics/asgi.py
new file mode 100644
index 0000000..e1eb9f8
--- /dev/null
+++ b/interactive_graphics/interactive_graphics/asgi.py
@@ -0,0 +1,16 @@
+"""
+ASGI config for interactive_graphics project.
+
+It exposes the ASGI callable as a module-level variable named ``application``.
+
+For more information on this file, see
+https://docs.djangoproject.com/en/4.2/howto/deployment/asgi/
+"""
+
+import os
+
+from django.core.asgi import get_asgi_application
+
+os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'interactive_graphics.settings')
+
+application = get_asgi_application()
diff --git a/interactive_graphics/interactive_graphics/settings.py b/interactive_graphics/interactive_graphics/settings.py
new file mode 100644
index 0000000..d072a76
--- /dev/null
+++ b/interactive_graphics/interactive_graphics/settings.py
@@ -0,0 +1,124 @@
+"""
+Django settings for interactive_graphics project.
+
+Generated by 'django-admin startproject' using Django 4.2.3.
+
+For more information on this file, see
+https://docs.djangoproject.com/en/4.2/topics/settings/
+
+For the full list of settings and their values, see
+https://docs.djangoproject.com/en/4.2/ref/settings/
+"""
+
+from pathlib import Path
+
+# Build paths inside the project like this: BASE_DIR / 'subdir'.
+BASE_DIR = Path(__file__).resolve().parent.parent
+
+
+# Quick-start development settings - unsuitable for production
+# See https://docs.djangoproject.com/en/4.2/howto/deployment/checklist/
+
+# SECURITY WARNING: keep the secret key used in production secret!
+SECRET_KEY = 'django-insecure-3siq-_p%th%ser_w$hduek9ep2h4&o^$@w%9i3#1$*ny-ay%l!'
+
+# SECURITY WARNING: don't run with debug turned on in production!
+DEBUG = True
+
+ALLOWED_HOSTS = []
+
+
+# Application definition
+
+INSTALLED_APPS = [
+ 'django.contrib.admin',
+ 'django.contrib.auth',
+ 'django.contrib.contenttypes',
+ 'django.contrib.sessions',
+ 'django.contrib.messages',
+ 'django.contrib.staticfiles',
+ 'graphics',
+]
+
+MIDDLEWARE = [
+ 'django.middleware.security.SecurityMiddleware',
+ 'django.contrib.sessions.middleware.SessionMiddleware',
+ 'django.middleware.common.CommonMiddleware',
+ 'django.middleware.csrf.CsrfViewMiddleware',
+ 'django.contrib.auth.middleware.AuthenticationMiddleware',
+ 'django.contrib.messages.middleware.MessageMiddleware',
+ 'django.middleware.clickjacking.XFrameOptionsMiddleware',
+]
+
+ROOT_URLCONF = 'interactive_graphics.urls'
+
+TEMPLATES = [
+ {
+ 'BACKEND': 'django.template.backends.django.DjangoTemplates',
+ 'DIRS': [],
+ 'APP_DIRS': True,
+ 'OPTIONS': {
+ 'context_processors': [
+ 'django.template.context_processors.debug',
+ 'django.template.context_processors.request',
+ 'django.contrib.auth.context_processors.auth',
+ 'django.contrib.messages.context_processors.messages',
+ ],
+ },
+ },
+]
+
+WSGI_APPLICATION = 'interactive_graphics.wsgi.application'
+
+
+# Database
+# https://docs.djangoproject.com/en/4.2/ref/settings/#databases
+
+DATABASES = {
+ 'default': {
+ 'ENGINE': 'django.db.backends.sqlite3',
+ 'NAME': BASE_DIR / 'db.sqlite3',
+ }
+}
+
+
+# Password validation
+# https://docs.djangoproject.com/en/4.2/ref/settings/#auth-password-validators
+
+AUTH_PASSWORD_VALIDATORS = [
+ {
+ 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
+ },
+ {
+ 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
+ },
+ {
+ 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
+ },
+ {
+ 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
+ },
+]
+
+
+# Internationalization
+# https://docs.djangoproject.com/en/4.2/topics/i18n/
+
+LANGUAGE_CODE = 'en-us'
+
+TIME_ZONE = 'UTC'
+
+USE_I18N = True
+
+USE_TZ = True
+
+
+# Static files (CSS, JavaScript, Images)
+# https://docs.djangoproject.com/en/4.2/howto/static-files/
+
+STATIC_URL = 'static/'
+
+# Default primary key field type
+# https://docs.djangoproject.com/en/4.2/ref/settings/#default-auto-field
+
+DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
diff --git a/interactive_graphics/interactive_graphics/urls.py b/interactive_graphics/interactive_graphics/urls.py
new file mode 100644
index 0000000..c56b4e0
--- /dev/null
+++ b/interactive_graphics/interactive_graphics/urls.py
@@ -0,0 +1,8 @@
+from django.contrib import admin
+from django.urls import path, include
+
+urlpatterns = [
+ path('admin/', admin.site.urls),
+ path('graphics/', include('graphics.urls')),
+ path('graphics/interactive_graph/', include('graphics.urls')),
+]
diff --git a/interactive_graphics/interactive_graphics/wsgi.py b/interactive_graphics/interactive_graphics/wsgi.py
new file mode 100644
index 0000000..6d8d2ef
--- /dev/null
+++ b/interactive_graphics/interactive_graphics/wsgi.py
@@ -0,0 +1,16 @@
+"""
+WSGI config for interactive_graphics project.
+
+It exposes the WSGI callable as a module-level variable named ``application``.
+
+For more information on this file, see
+https://docs.djangoproject.com/en/4.2/howto/deployment/wsgi/
+"""
+
+import os
+
+from django.core.wsgi import get_wsgi_application
+
+os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'interactive_graphics.settings')
+
+application = get_wsgi_application()
diff --git a/interactive_graphics/manage.py b/interactive_graphics/manage.py
new file mode 100644
index 0000000..bf31854
--- /dev/null
+++ b/interactive_graphics/manage.py
@@ -0,0 +1,22 @@
+#!/usr/bin/env python
+"""Django's command-line utility for administrative tasks."""
+import os
+import sys
+
+
+def main():
+ """Run administrative tasks."""
+ os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'interactive_graphics.settings')
+ try:
+ from django.core.management import execute_from_command_line
+ except ImportError as exc:
+ raise ImportError(
+ "Couldn't import Django. Are you sure it's installed and "
+ "available on your PYTHONPATH environment variable? Did you "
+ "forget to activate a virtual environment?"
+ ) from exc
+ execute_from_command_line(sys.argv)
+
+
+if __name__ == '__main__':
+ main()
diff --git a/pandas/analyze.py b/pandas/analyze.py
new file mode 100644
index 0000000..26d55e1
--- /dev/null
+++ b/pandas/analyze.py
@@ -0,0 +1,34 @@
+import pandas as pd
+import matplotlib.pyplot as plt
+
+# Путь к CSV-файлу с данными
+input_file_path = 'input/medical_data_input.csv'
+
+# Чтение CSV-файла в DataFrame
+medical_data = pd.read_csv(input_file_path)
+
+# Вывод первых нескольких строк DataFrame
+print("Первые несколько строк данных:")
+print(medical_data.head())
+
+# Базовая предобработка данных (можно добавить дополнительные шаги предобработки при необходимости)
+# Преобразование 'Age' в числовой формат
+medical_data['Age'] = pd.to_numeric(medical_data['Age'], errors='coerce')
+
+# Визуализация данных
+# Гистограмма возраста
+medical_data['Age'].plot(kind='hist', bins=20,
+ edgecolor='black', figsize=(10, 6))
+plt.title('Гистограмма возраста')
+# !
+plt.xlabel('Возраст')
+plt.ylabel('Частота')
+plt.show()
+
+# Столбчатая диаграмма диагнозов!
+condition_counts = medical_data['Condition'].value_counts()
+condition_counts.plot(kind='bar', color='skyblue', figsize=(10, 6))
+plt.title('Распределение медицинских состояний')
+plt.xlabel('Состояние')
+plt.ylabel('Количество')
+plt.show()
diff --git a/pandas/input/medical_data_input.csv b/pandas/input/medical_data_input.csv
new file mode 100644
index 0000000..67ac102
--- /dev/null
+++ b/pandas/input/medical_data_input.csv
@@ -0,0 +1,101 @@
+PatientID,Name,Age,Condition
+645b6332-f81b-4cca-b2c1-82fbb38dc363,Kristy House,45,Flu
+44645957-8b4a-4a23-9b39-cceb0d3ffa6e,Brandon Moore,71,Diabetes
+fa71c748-317e-407d-be26-1ee4bb597993,Lindsey Martin,35,Flu
+d93142e5-3637-4f53-b524-1e503abce1fe,John Stokes,56,Diabetes
+45cc796b-b331-4683-863e-874acb679063,Mary Chan,41,Diabetes
+5e8da9aa-36fa-4ad1-b669-98fcad3b367d,Denise Lowe,18,Headache
+190a4d95-e8e1-40a6-896d-361173b74b94,Anthony Grimes,48,Diabetes
+f47d8c03-90ac-4d91-83db-048eadc37fd2,Tyler Sullivan,61,Diabetes
+79fef539-1776-49ef-bdf4-7698c6e6d5a5,Darlene Holmes,39,Allergy
+dee4a87e-8a97-49b5-8341-47b001b04a71,Sabrina Alvarez,29,Headache
+b21cb6d1-224c-4d27-b5b0-a406a32dac88,Frederick Le,37,Broken Arm
+b39239c7-477b-4a23-9d2a-03d2fda1de2d,Richard Lynch,46,Broken Arm
+7f5652b4-2ef8-456c-95d5-bb7d2486d1a7,Martha Anderson,47,Broken Arm
+c62c8ba5-afc5-4ad5-bb4f-5ddc8c3512d0,Margaret Vang,42,Headache
+2d9473e8-f740-464b-9451-2cb02075ed0b,Brian Cantrell,36,Broken Arm
+1792abf9-e00e-4c54-828a-705f03499d5a,Katie Nelson,27,Broken Arm
+0bc33366-df0f-425a-b73b-2a957d7f0ad2,Robert Banks,57,Allergy
+7d96dc03-a754-445b-ab31-692a49b8817b,Tommy Brown,54,Diabetes
+c5a27b5f-d597-4617-b2c2-706b6f3e819c,Nicholas Diaz,67,Diabetes
+614ccdee-4537-4ac7-83e2-6a754139173b,James Kirk,51,Allergy
+531beb47-5f02-4528-b87a-814478e28a60,Jordan Thomas,47,Headache
+9fc39441-7ef2-4ad9-b52f-4f887b5aa3b3,Beverly Carter,33,Allergy
+3561a297-305d-429f-ae27-4181930879f3,Benjamin Taylor,36,Allergy
+4568749e-e316-4f95-bf51-56c9f7fc3813,Mary Sanchez,42,Allergy
+c5140e12-e3cf-4eab-9138-2bd503011508,Danny Hanson,76,Flu
+c15f85f2-82a8-4b4e-8088-acc8a739c828,Patrick Stafford,23,Headache
+10b9e1b7-081e-474e-b3ee-b9097dabc8b9,Nancy Miller,47,Flu
+88806cb9-cb48-4c4f-87c8-21081ec4b1c9,Crystal Wilson,18,Headache
+b9162f12-c0f1-4daa-b849-a3393d3bb56e,Daniel Moore,52,Diabetes
+c6114316-4b83-4c75-a29f-084bddf36e7e,Charles Wilson,55,Flu
+f23a7715-903e-45d5-b660-018747a7794b,Victor Reyes,45,Broken Arm
+2c5ffce1-65dc-468b-beac-d45fc426f1b4,Rachel Vasquez,74,Diabetes
+d54af2ea-542b-4993-a311-3d3701989310,Melissa Taylor,49,Broken Arm
+39b29c9a-7c38-4563-a9ff-00167ee92936,Reginald Rodriguez,27,Allergy
+7bfc870c-15b6-4b3c-8747-a097635bda6c,Haley Navarro,20,Allergy
+b82af04a-40c5-4513-8d88-261cc3a5861a,Mitchell Baker,73,Broken Arm
+ecff4a50-de12-4368-8b97-7d7f7a9daf27,Tiffany Anderson,74,Allergy
+17d777b7-0df4-49bc-9bc8-321d2d65a1a4,Jamie Dickerson,72,Broken Arm
+da2ecf35-a279-4ab5-b449-e1acbdb8f841,Charlotte Barnes,45,Flu
+034fa152-11f7-4577-a069-d71b0a96749e,Matthew Vega,51,Allergy
+f6df0805-3c7d-4df7-943e-e8211820aae0,Nicholas Hernandez,55,Headache
+4c63996b-f178-46d3-bc42-5a928aaccf2b,Lauren Acevedo,48,Flu
+099a2587-1130-41c3-9555-8f86795f7c36,Zachary Watson,20,Flu
+e4fdb566-d6b4-4e45-a4bf-fb4c6b26df09,Rebecca Williams,64,Allergy
+356cbc7a-dad1-41f1-8547-c89bc71a7fab,Paul Camacho,75,Broken Arm
+1b0d7c6e-9a0a-43b1-afcd-e493f5ca5888,Alexandra Gutierrez,26,Diabetes
+6d6d4e23-ed98-46f8-9bab-91f999927c07,Alan Osborn,48,Flu
+919de925-e2c0-419b-a61f-6abf00881922,Heidi Sanchez,27,Broken Arm
+fec109ad-eb3a-4f9f-a02a-00456c0f46e5,Bradley Lopez,19,Headache
+74e16916-5ed2-4611-9786-7dfb477fe34a,Amy Spencer,49,Allergy
+2904590d-ff1c-41e0-917a-0b50387d3d03,Steven Medina,21,Broken Arm
+969cdb68-081d-4271-863d-6f9d51f35dd6,Patrick Murray,49,Headache
+d37a1703-e529-4755-b1c9-6859ad664575,Paige Graham,27,Broken Arm
+d12b2896-a934-4d4b-a993-d945a31656ec,Lauren Sims,41,Broken Arm
+99d2599f-c896-491c-90c2-9200e55ec84e,Carlos Nelson,42,Allergy
+e534039a-6bf3-4d8e-aa4d-1e46fb91f9d2,William Stewart,22,Diabetes
+16cee1a1-fc8d-4dee-8270-b13f5387d23f,Kim Smith,61,Diabetes
+84840a68-a496-43fd-96e7-e30a534e1ffb,Ronald Kramer,61,Allergy
+1a705f63-2f37-45da-aff1-8367d4e3d1a4,Mariah Lopez,27,Diabetes
+e1c6bfbe-d557-4f43-aa09-32413e91a822,Amber Patterson,54,Diabetes
+0badb2f8-fdc7-4ffb-b3fb-61f6e03b6ac5,Brenda Miller,51,Flu
+f7fcdcfa-b115-42cf-860a-4b7d92b10897,Justin Cole,33,Headache
+f264e29e-6f85-4dbc-800a-6e432681fd0c,Laurie Barrett,29,Diabetes
+f4ee09ff-f4dd-447f-aeee-98b61bb497cb,Richard Johnson,50,Broken Arm
+295d54f8-9d5f-4bc0-b6b2-2a20f62e7b9d,Keith Ramirez,30,Headache
+d62e8ec5-1952-44fc-b0fe-5c89972e09d1,Evan Bailey,21,Flu
+34a2d8ae-c721-4d6c-b738-3f62731c3eb2,Ryan Evans,70,Flu
+31cf2572-f960-4e55-b371-7b048be4d01f,Debra Peterson,74,Diabetes
+1770c437-a297-48e8-9095-efa6a4958fe4,Kathleen Carroll,37,Diabetes
+d77dd483-115c-48de-9e32-b51ec7dbc193,Terry Griffin,74,Flu
+70176b5e-0581-46ca-9222-48922ba6cd81,Lauren Rosales,38,Broken Arm
+0a1f146e-9d61-48a0-81a8-813e922f0bfb,Christina Adams DDS,63,Broken Arm
+b8e524cf-3baa-40af-9f09-0a3ec9ed97b7,Colton Martin,50,Broken Arm
+b0a19e32-cb4b-4f8a-9719-37adecc67447,David Carrillo,52,Allergy
+d17400e0-321d-4498-b4fe-b3251c3ee592,Cory Mitchell,64,Broken Arm
+9542c44e-c64e-4aea-952e-535c1d713187,Holly Brown,24,Headache
+2c1811d0-79e6-4d3e-bc79-b0d1263186c2,James Davis,25,Allergy
+7fb4b133-1054-4832-b806-8d64ee5f2f8d,Rebecca Oliver,57,Flu
+56280764-26e1-4027-b49e-d5fe554c648a,Brian Smith,56,Allergy
+a78fb9fe-64db-4043-a2d4-01360ac46f2e,Christopher Anderson,47,Broken Arm
+996e485b-42fd-4da5-a556-9dec9d80aa49,Blake Wiley,46,Flu
+5571977b-4912-4288-a245-3bae99b99f87,Shirley Dunn,47,Diabetes
+be855fc6-a3e6-4346-94cc-69c18bf6d2a1,Jeanne Galvan,63,Flu
+aadf8a94-30a6-4893-927d-11bd3e2e95ee,Kenneth Norton,79,Broken Arm
+fd6a93b8-9eda-4b0e-8711-9d27db79cad9,Sheila Knight,57,Broken Arm
+591ecad8-7dfd-40ae-9c08-3aa339253271,Andrea Duncan,65,Headache
+11c3553e-1ff8-44e6-a87a-acb32659ac68,Jennifer White,51,Allergy
+9907a69a-4329-4024-8487-98e1821dc3b4,Ryan Young,58,Broken Arm
+75e7ee60-5366-4d24-a011-7f9771584e99,Thomas Brady,54,Allergy
+035ef52a-790d-4f49-a4ea-34889319c377,Penny Hensley,27,Flu
+a8d6429d-0c5d-4281-bfea-acd043827e4a,Mitchell Campbell,19,Diabetes
+e87f8ca5-0ff2-43f0-a50d-d34f1383f6dc,James Ortega,50,Flu
+543664d4-b24d-4505-9ff9-1a468ec4389c,Daniel Richardson,52,Diabetes
+73ecff6d-5574-411c-9e2a-a4c02e4c276d,Michael Davis,40,Flu
+e23d66b6-d222-4ce7-82b1-064bc9b9d960,Misty Bass,63,Broken Arm
+2529d966-d791-4812-b066-8e52ce8d9ae3,Roger Fowler,46,Headache
+b458185e-e5a1-47a0-bc97-57a20fcf3898,Joseph Rodriguez,42,Broken Arm
+37759fd8-a2e1-409f-ab15-e120879487bd,Christopher Tucker,27,Allergy
+731c8434-a074-49fd-9e1b-e1b823db78ea,Francisco Garcia,71,Flu
+e3084767-23c4-4a71-93de-58fd42f78ef8,Michelle Ferguson,45,Headache
diff --git a/pandas/main.py b/pandas/main.py
new file mode 100644
index 0000000..bc47561
--- /dev/null
+++ b/pandas/main.py
@@ -0,0 +1,37 @@
+import pandas as pd
+import numpy as np
+import os
+from faker import Faker
+
+# Path to the input folder
+input_folder = 'input'
+
+# Create the input folder if it doesn't exist
+if not os.path.exists(input_folder):
+ os.makedirs(input_folder)
+
+# Function to generate random medical records
+
+
+def generate_medical_records(num_records):
+ fake = Faker()
+
+ data = {
+ 'PatientID': [fake.uuid4() for _ in range(num_records)],
+ 'Name': [fake.name() for _ in range(num_records)],
+ 'Age': [fake.random_int(min=18, max=80) for _ in range(num_records)],
+ 'Condition': [fake.random_element(elements=('Flu', 'Allergy', 'Broken Arm', 'Headache', 'Diabetes')) for _ in range(num_records)]
+ }
+
+ return pd.DataFrame(data)
+
+
+# Generate 100 random medical records (you can adjust the number as needed)
+num_records = 100
+medical_records = generate_medical_records(num_records)
+
+# Save the DataFrame to a CSV file in the input folder
+input_file_path = os.path.join(input_folder, 'medical_data_input.csv')
+medical_records.to_csv(input_file_path, index=False)
+
+print(f"CSV file '{input_file_path}' with random medical data has been generated and placed in the 'input' folder.")
diff --git a/pandas/output/flu_patients_age_histogram.png b/pandas/output/flu_patients_age_histogram.png
new file mode 100644
index 0000000..912aeb1
Binary files /dev/null and b/pandas/output/flu_patients_age_histogram.png differ