It is most interesting feature of NLP, which we can extract from a comment_text is calculating the number of hashtags or mentions present in it. This also helps in extracting extra information from our text data.
(Here, we make use of the ‘startswith’ function because hashtags (or mentions) always appear at the beginning of a word.)