02-24-2022 05:16 AM
Hi,
Can we use config file to change pyspark dataframe attribute names (root, nested of both struct and array type) .
Actually in input we are getting attributes in lowercase we need to convert them into camel case(please note we don't have any separators in attribute name to use or build camel functions or libraries.
We are trying to implement it in pyspark.
Please add your suggestions over here
Thank you
04-29-2022 05:04 AM
We have created config file in csv format and converted that into dict key value pairs to chanage the dataframe attribute names.
02-24-2022 06:46 AM
Hi @Sailaja B ! Great to meet you, and thanks for your question! Let's see if your peers in the community have an answer to your question first. Or else I will get back to you soon. Thanks.
02-24-2022 03:31 PM
Hi @Sailaja B , Can you show your input file if you're comfortable with it?
04-28-2022 09:53 AM
Hi @Sailaja B
Hope you are well.
Just wanted to see if you were able to find an answer to your question and would you be happy to share it with us? It would be really helpful for the other members too.
Thanks!
04-29-2022 05:04 AM
We have created config file in csv format and converted that into dict key value pairs to chanage the dataframe attribute names.
04-29-2022 07:56 AM
Hi @Sailaja B
This is awesome!
Thanks for coming in and posting the solution. We really appreciate it.
Cheers!
Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections.
Click here to register and join today!
Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.