Shapedsundew9 / erasmus-gp

Meta-genetic programming
MIT License
0 stars 0 forks source link

Add iterable of column names to register_conversion() in table #16

Open Shapedsundew9 opened 3 years ago

Shapedsundew9 commented 3 years ago

Annoying to have to list several of the same. e.g. mission_table.register_conversion('timestamp', str_to_date, date_to_str) mission_table.register_conversion('execution_start', str_to_date, date_to_str) mission_table.register_conversion('execution_end', str_to_date, date_to_str) mission_table.register_conversion('created', str_to_date, date_to_str)

-->

mission_table.register_conversion(('timestamp', 'execution_start', 'execution_end', 'created'), str_to_date, date_to_str)