parameters: (dataset, columns)
docstring: Same as select columns but redirect runtime error to ToolkitError.
docstring_summary: Same as select columns but redirect runtime error to ToolkitError.
docstring_tokens: Same as select columns but redirect runtime error to ToolkitError .
function: def _toolkits_select_columns(dataset, columns):
      """
      Same as select columns but redirect runtime error to ToolkitError.
      """
      try:
          return dataset.select_columns(columns)
      except RuntimeError:
          missing_features = list(set(columns).difference(set(dataset.column_names())))
          raise ToolkitError(
              "Input data does not contain the following columns: "
              + "{}".format(missing_features)
          )
function_tokens: def _toolkits_select_columns ( dataset , columns ) : try : return dataset . select_columns ( columns ) except RuntimeError : missing_features = list ( set ( columns ) . difference ( set ( dataset . column_names ( ) ) ) ) raise ToolkitError ( "Input data does not contain the following columns: " + "{}" . format ( missing_features ) )