LoginSignup
0
0

More than 3 years have passed since last update.

pythonでr文字列扱うのがめんどくさくなった

Last updated at Posted at 2020-12-09

状況

r文字列扱うのが面倒になった
何型か考えるのも面倒臭い
言語はpython

解法

これで一発

df.text = df.text.apply(lambda x: x.encode("raw_unicode_escape").decode("unicode_escape"))
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0