def remove_punctuation(text, keep_cash=True):
    """
    Remove punctuation from text.
    
    Input
    -----
    
    text : str
        Text to remove punctuation from.
        
    keep_cash : bool (default True)
        Whether to remove the dollar sign '$' or not.
    """
    # Define which punctuation to remove:
    punctuation = '!"#%&\'()*+,-.:;<=>?@[\\]^_`{|}~'
    if keep_cash == False:
        punctuation = punctuation + '$'
    
    return text.translate(str.maketrans('/', ' ', punctuation))