docstr: overwrite all data in FeatureStorage with data
  
  Parameters
  ----------
  data: Union[List, np.ndarray, Tuple]
      data
  index: int
      data start index
docstr_tok: ["overwrite","all","data","in","FeatureStorage","with","data","Parameters","--","--","--","--","--","data",":","Union","[","List",",","np.ndarray",",","Tuple","]","data","index",":","int","data","start","index"]
code: def rewrite(self, data: Union[List, np.ndarray, Tuple], index: int):
      """overwrite all data in FeatureStorage with data
  
      Parameters
      ----------
      data: Union[List, np.ndarray, Tuple]
          data
      index: int
          data start index
      """
      self.clear()
      self.write(data, index)
  
imports: import re
  from typing import Iterable, overload, Tuple, List, Text, Union, Dict
  import numpy
  import pandas
  from qlib.log import get_module_logger
label_desc: Use image node_id 8 for calling the FeatureStorage obj's underlying member method code with example usage: obj.rewrite(data, index) without return types