question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jbesomicommented, Jul 9, 2020

Yes! 😃 want to take it? (probably you are the better match out there 😃)

0reactions
jbesomicommented, Jul 15, 2020

Implemented in #58

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found