/
Alex_Mod
/
brand
Обзор
Документация
Войти
/
Alex_Mod
/
brand
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/data_loader.py
16 строк
556 B
Alex
first commit
02 ноя 2025, 04:16
02 ноя 2025, 04:16
7b62aab
Код
Авторство
О чём код?
import csv from typing import List, Dict class DataLoader: @staticmethod def load_files(file_paths: List[str]) -> List[Dict]: data = [] for path in file_paths: with open(path, newline='', encoding='utf-8') as f: reader = csv.DictReader(f) for row in reader: # Преобразуем rating в float row['rating'] = float(row['rating']) row['price'] = float(row['price']) data.append(row) return data