@@sravanalakshmipisupati6533 Can you help me with this one input List to_remove = ['%', '-', '&', ":"] removeFrom = ['XYZ','12%', 'MALE', 'ABC','1-7KG', '12KG', 'MALE&FEMELE', '1:1',"script"] output=['MALE','ABC','XYZ','script'] We need to remove element from removeFrom which is contained to_remove char element how to do In scala efficient way
The element_at function is not getting resolved. I have imported all the requisites. What could be the issue ? Error:(20, 52) not found: value element_at val df1 = df.withColumn("DateTimeStamp", rtrim(element_at(split(df("TimeStamp"), " "),1)))
Thank you, Sravana for sharing the solution 👏👏
I have learned a new Function foldleft
Thanks a lot, Mayur. Many other foldLeft() scenarios can be found at - github.com/sravanapisupati/SampleDataSet/blob/main/TH-cam_videos_list
@@sravanalakshmipisupati6533 Can you help me with this one
input List
to_remove = ['%', '-', '&', ":"]
removeFrom = ['XYZ','12%', 'MALE', 'ABC','1-7KG', '12KG', 'MALE&FEMELE', '1:1',"script"]
output=['MALE','ABC','XYZ','script']
We need to remove element from removeFrom which is contained to_remove char element
how to do In scala efficient way
Nice explanation sravana 👌 👍 👏
Thanks a lot, Sravan
Really good video to understand foldleft function 🙏 thank you
Good Efforts ,very clear explanation 👍🎉
Thanks a lot, Dileep.
good explanation .. you have a sound knowledge on spark and scala
Mam pls scala notes provide kijiye...pls attach file link to description...
github.com/sravanapisupati/SampleDataSet/blob/main/ReadingUnstructuredData.scala
@@sravanalakshmipisupati6533 tysm...🙏
The element_at function is not getting resolved. I have imported all the requisites. What could be the issue ?
Error:(20, 52) not found: value element_at
val df1 = df.withColumn("DateTimeStamp", rtrim(element_at(split(df("TimeStamp"), " "),1)))
Please check the spark and scala versions.
Could you please explain Repartition concept in spark
Sure Zakeer, I will get back to you soon.