/
AlexShe23
/
ShestakovTableDataset
Обзор
Документация
Войти
/
AlexShe23
/
ShestakovTableDataset
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
filtration.py
23 строки
507 B
AlexShe23
create: categorical_to_numerical.py, Diagrams.py, DiagramsModified.py, filtration.py, heatmap.py, new_categoria.py, noise.py, pyplot_visualisation.py, SeabornDiagrams.py
31 май 2026, 17:36
Верифицирован
31 май 2026, 17:36
3d651da
Код
Авторство
О чём код?
import pandas as pd df = pd.read_csv('/Users/xyander23/PycharmProjects/PythonProject/uniproject.csv') filtered_1 = df[df['study_hours_per_day'] > 5] print(filtered_1.shape) print(filtered_1.head()) filtered_2 = df[df['part_time_job'] == "Yes"] print(filtered_2.shape) print(filtered_2.head()) filtered_3 = df[ (df['study_hours_per_day'] > 4) & (df['exam_score'] > 80) ] print(filtered_3.shape) print(filtered_3.head()) filtered_3.to_csv('filtereddataset.csv', index=False, encoding='utf-8')