original_docstring: Verify user has not supplied tags that cannot be set directly
docstring: Verify user has not supplied tags that cannot be set directly
docstring_tokens: Verify user has not supplied tags that cannot be set directly
code: def _validate_not_setting_index_tags(semantic_tags, col_name):
      """Verify user has not supplied tags that cannot be set directly"""
      if "index" in semantic_tags:
          raise ValueError(
              f"Cannot add 'index' tag directly for column {col_name}. To set a column as the index, "
              "use DataFrame.ww.set_index() instead."
          )
      if "time_index" in semantic_tags:
          raise ValueError(
              f"Cannot add 'time_index' tag directly for column {col_name}. To set a column as the time index, "
              "use DataFrame.ww.set_time_index() instead."
          )
code_tokens: def _validate_not_setting_index_tags ( semantic_tags , col_name ) : if "index" in semantic_tags : raise ValueError ( f"Cannot add 'index' tag directly for column {col_name}. To set a column as the index, " "use DataFrame.ww.set_index() instead." ) if "time_index" in semantic_tags : raise ValueError ( f"Cannot add 'time_index' tag directly for column {col_name}. To set a column as the time index, " "use DataFrame.ww.set_time_index() instead." )
short_docstring: Verify user has not supplied tags that cannot be set directly
short_docstring_tokens: Verify user has not supplied tags that cannot be set directly
comment: """Verify user has not supplied tags that cannot be set directly"""