class_docstr: Data class for input data for the nodes
      
class_docstr_tok: ["Data","class","for","input","data","for","the","nodes"]
docstr: Conversion non ``int`` (``datetime``, ``string``, etc) indexes in ``integer`` form on the fit stage
          
code: def convert_non_int_indexes_for_fit(self, pipeline):
      """Conversion non ``int`` (``datetime``, ``string``, etc) indexes in ``integer`` form on the fit stage"""
  
      copied_data = deepcopy(self)
      is_timestamp = isinstance(
          copied_data.idx[0], pd._libs.tslibs.timestamps.Timestamp
      )
      is_numpy_datetime = isinstance(copied_data.idx[0], np.datetime64)
      # if fit stage- just creating range of integers
      if is_timestamp or is_numpy_datetime:
          copied_data.supplementary_data.non_int_idx = copy(
              copied_data.idx
          )
          copied_data.idx = np.array(range(len(copied_data.idx)))
  
          last_idx_time = copied_data.supplementary_data.non_int_idx[-1]
          pre_last_time = copied_data.supplementary_data.non_int_idx[-2]
  
          pipeline.last_idx_int = copied_data.idx[-1]
          pipeline.last_idx_dt = last_idx_time
          pipeline.period = last_idx_time - pre_last_time
      elif not isinstance(
          copied_data.idx[0], (int, np.int32, np.int64)
      ):
          copied_data.supplementary_data.non_int_idx = copy(
              copied_data.idx
          )
          copied_data.idx = np.array(range(len(copied_data.idx)))
          pipeline.last_idx_int = copied_data.idx[-1]
      return copied_data
  
imports: from __future__ import annotations
  import glob
  import os
  from copy import copy, deepcopy
  from dataclasses import dataclass, field
  from typing import Any, Iterable, List, Optional, Tuple, Union
  import numpy
  import pandas
  from golem.core.log import default_log
  from golem.utilities.requirements_notificator import warn_requirement
  from fedot.core.data.array_utilities import atleast_2d
  from fedot.core.data.load_data import JSONBatchLoader, TextBatchLoader
  from fedot.core.data.supplementary_data import SupplementaryData
  from fedot.core.repository.dataset_types import DataTypesEnum
  from fedot.core.repository.tasks import Task, TaskTypesEnum
label_desc: Use image node_id 8 for calling the InputData obj's underlying member method code with example usage: obj.convert_non_int_indexes_for_fit(pipeline) and returns: copied_data