cut_column
table.cut_column
                                                                                
 Documentation                                                                  
                          Cut off one column from a table, returning an         
                          array.                                                
                                                                                
 Origin                                                                         
                          Authors   Markus Binsteiner (markus@frkl.io)          
                                                                                
 Context                                                                        
                          Tags         core                                     
                          Labels       package: kiara_modules.core              
                          References   source_repo:                             
                                       https://github.com/DHARPA-Project/kia…   
                                       documentation:                           
                                       https://dharpa.org/kiara_modules.core/   
                                       module_doc:                              
                                       https://dharpa.org/kiara_modules.core…   
                                       source_url:                              
                                       https://github.com/DHARPA-Project/kia…   
                                                                                
 Module config                                                                  
                          Field       Type     Description           Required   
                         ─────────────────────────────────────────────────────  
                          constants   object   Value constants for   no         
                                               this module.                     
                          defaults    object   Value defaults for    no         
                                               this module.                     
                                                                                
 Module config          -- no config --                                         
 Python class                                                                   
                          class_name    CutColumnModule                         
                          module_name   kiara_modules.core.table                
                          full_name     kiara_modules.core.table.CutColumnMo…   
                                                                                
 Processing source code  ─────────────────────────────────────────────────────  
                          def process(self, inputs: ValueSet, outputs: Value…   
                                                                                
                              import pyarrow as pa                              
                                                                                
                              table_value = inputs.get_value_obj("table")       
                                                                                
                              column_name: str = inputs.get_value_data("colu…   
                              available = table_value.get_metadata("table")[…   
                              if column_name not in available:                  
                                  raise KiaraProcessingException(               
                                      f"Invalid column name '{column_name}'.…   
                                  )                                             
                                                                                
                              table: pa.Table = inputs.get_value_data("table…   
                              column = table.column(column_name)                
                                                                                
                              outputs.set_value("array", column)                
                                                                                
                         ─────────────────────────────────────────────────────