code: def replace_hashtags(s: TextSeries, symbol: str) -> TextSeries:
      """Replace all hashtags from a Pandas Series with symbol
  
      A hashtag is a string formed by # concatenated with a sequence of
      characters, digits and underscores. Example: #texthero_123.
  
      Parameters
      ----------
      s : :class:`texthero._types.TextSeries`
  
      symbol : str
          Symbol to replace hashtags with.
  
      Examples
      --------
      >>> import texthero as hero
      >>> import pandas as pd
      >>> s = pd.Series("Hi #texthero_123, we will replace you.")
      >>> hero.replace_hashtags(s, symbol='HASHTAG')
      0    Hi HASHTAG, we will replace you.
      dtype: object
  
      """
      pattern = r"#[a-zA-Z0-9_]+"
      return s.str.replace(pattern, symbol)
  
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 29 for calling a global function with example usage: replace_hashtags(s, symbol) and returns: s