フィールドの1つに%% .. %%で囲まれたpysparkデータフレームがあります。同封された内容は大文字と小文字の区別がありません。私は小文字に変換したい。Pythonで%%で囲まれた文字列を小文字に変換します
以下は、データフレームのスナップショットです。
https://www.xxxxxxxx.co.nz/Activities|http://www.xxxxxxxx.co.nz/things-to-do/search?location=%%t.trip_intrip_1_dest_city_1%%
https://images.trvl-media.com/media/content/expus/email/2016/us/banner/images/image_stor-34461_09_600x250.jpg|%%mis_lx_offers_mod_images.largeimageurl%%
は、列のテキストは、私は次のフォーマットに上記のテキストを変換するこの
https://www.xxxxxxxx.co.nz/Activities|http://www.xxxxxxxx.co.nz/things-to-do/search?location=%%t.Trip_Intrip_1_dest_City_1%%
https://images.trvl-media.com/media/content/expus/email/2016/us/banner/images/image_stor-34461_09_600x250.jpg|%%mis_lx_Offers_mod_Images.LargeImageURL%%
のように見えます
テキスト 'LargeImageUrl'はまだあなたの質問 – theBrainyGeek
は、あなたがそれをマッピングし、' .split( "%%") 'そして' .lowerをしないことはできませんのすべての下のキャップではありません() '? – 16num
@theBrainyGeekSorry、それはタイプミスでした。変更を加えました。ありがとう。 – Yuvaraj