code: def remove_digits(s: TextSeries, only_blocks=True) -> TextSeries:
      """
      Remove all digits and replaces them with a single space.
  
      By default, only remove "blocks" of digits. For instance, `1234 falcon9`
      becomes ` falcon9`.
  
      When the arguments `only_blocks` is set to ´False´, remove any digits.
  
      See also :meth:`replace_digits` to replace digits with another string.
  
      Parameters
      ----------
      s : :class:`texthero._types.TextSeries`
  
      only_blocks : bool, optional, default=True
          Remove only blocks of digits.
  
      Examples
      --------
      >>> import texthero as hero
      >>> import pandas as pd
      >>> s = pd.Series("7ex7hero is fun 1111")
      >>> hero.preprocessing.remove_digits(s)
      0    7ex7hero is fun
      dtype: object
      >>> hero.preprocessing.remove_digits(s, only_blocks=False)
      0     ex hero is fun
      dtype: object
      """
  
      return replace_digits(s, " ", only_blocks)
  
imports: from gensim.models.phrases import Phrases
  import re
  import string
  from typing import Optional, Set
  import unicodedata
  import numpy
  import pandas
  from texthero._types import TokenSeries, TextSeries, InputSeries
  from typing import List, Callable, Union
  import warnings
label_desc: Use image node_id 4 for calling a global function with example usage: remove_digits(s, only_blocks) and returns: replace_digits