original_docstring: 
          Converts categorical DataFrame columns to str columns. In D3M pipelines generally expect categorical
          columns to be encoded as strings and only later the pipeline encodes them in some way.
          
docstring: Converts categorical DataFrame columns to str columns. In D3M pipelines generally expect categorical
  columns to be encoded as strings and only later the pipeline encodes them in some way.
docstring_tokens: Converts categorical DataFrame columns to str columns . In D3M pipelines generally expect categorical columns to be encoded as strings and only later the pipeline encodes them in some way .
code: def _convert_categorical_columns(self, data: pandas.DataFrame, categorical_indicator: typing.List[bool]) -> pandas.DataFrame:
          """
          Converts categorical DataFrame columns to str columns. In D3M pipelines generally expect categorical
          columns to be encoded as strings and only later the pipeline encodes them in some way.
          """
  
          for column_index, is_categorical in enumerate(categorical_indicator):
              if not is_categorical:
                  continue
  
              column_name = data.columns[column_index]
  
              data[column_name] = data[column_name].astype(str)
  
          return data
code_tokens: def _convert_categorical_columns ( self , data : pandas . DataFrame , categorical_indicator : typing . List [ bool ] ) -> pandas . DataFrame : for column_index , is_categorical in enumerate ( categorical_indicator ) : if not is_categorical : continue column_name = data . columns [ column_index ] data [ column_name ] = data [ column_name ] . astype ( str ) return data
short_docstring: Converts categorical DataFrame columns to str columns.
short_docstring_tokens: Converts categorical DataFrame columns to str columns .
comment: """
          Converts categorical DataFrame columns to str columns. In D3M pipelines generally expect categorical
          columns to be encoded as strings and only later the pipeline encodes them in some way.
          """