Files
AIclinicalresearch/python-microservice/operations/__init__.py
HaHafeng 91cab452d1 fix(dc/tool-c): Fix special character handling and improve UX
Major fixes:
- Fix pivot transformation with special characters in column names
- Fix compute column validation for Chinese punctuation
- Fix recode dialog to fetch unique values from full dataset via new API
- Add column mapping mechanism to handle special characters

Database migration:
- Add column_mapping field to dc_tool_c_sessions table
- Migration file: 20251208_add_column_mapping

UX improvements:
- Darken table grid lines for better visibility
- Reduce column width by 40% with tooltip support
- Insert new columns next to source columns
- Preserve original row order after operations
- Add notice about 50-row preview limit

Modified files:
- Backend: SessionService, SessionController, QuickActionService, routes
- Python: pivot.py, compute.py, recode.py, binning.py, conditional.py
- Frontend: DataGrid, RecodeDialog, index.tsx, ag-grid-custom.css
- Database: schema.prisma, migration SQL

Status: Code complete, database migrated, ready for testing
2025-12-08 23:20:55 +08:00

18 lines
336 B
Python

"""
数据操作函数模块
提供预写的、经过测试的数据处理函数,供功能按钮调用。
模块列表:
- filter: 高级筛选
- recode: 数值映射(重编码)
- binning: 生成分类变量(分箱)
- conditional: 条件生成列
- missing: 缺失值处理
- duplicate: 去重
"""
__version__ = '1.0.0'