Add replace_hashtags, remove_hasthags
See original GitHub issue(Edit)
Add replace_hashtags
, remove_hastags
Example:
>>> s = pd.Series(["Hey #git123 how are you doing?"])
>>> hero.replace_tag(s, symbol="X")
0 Hey Xgit123 how are you doing?
dtype: object
Implementation
Please refer to the other replace_, remove_ examples by looking at the code in preprocessing.py
. remove_hashtags
should simply call replace_hashtags
with symbol=
.
Thank you /u/penatbater from Reddit for the suggestion.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Regex to remove hashtags but to keep first hashtag
I want to remove all hashtags from a text but it should keep the ... other hashtag via alternation, and replace them with...
Read more >Convert text to hashtags
Easy way to add or remove hashtag symbol # from a text. Text converter made easy.
Read more >Remove a particular string or hashtag from the post text
You can use the following snippet to remove a particular string or hashtag. Just add the following JavaScript to your site. This can...
Read more >How can I remove a hashtag from a Twitter post? - dlvr.it support
You can remove select text from Twitter posts using dlvr.it's Find and Replace (or Remove) feature. Please note that dlvr.it can no longer ......
Read more >Hashtags for #replace to grow your Instagram, TikTok
Best hashtags for use with #replace are #replace #repair #replacement #service #instagram #love #install #quotes #replaced #firesprinklers #restore ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yes! 😃 want to take it? (probably you are the better match out there 😃)
Implemented in #58