cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

how we can use config file to change pysparks dataframe names without hardcoding

SailajaB
Valued Contributor III

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

1 ACCEPTED SOLUTION

Accepted Solutions

SailajaB
Valued Contributor III

We have created config file in csv format and converted that into dict key value pairs to chanage the dataframe attribute names.

View solution in original post

3 REPLIES 3

Anonymous
Not applicable

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!

SailajaB
Valued Contributor III

We have created config file in csv format and converted that into dict key value pairs to chanage the dataframe attribute names.

Anonymous
Not applicable

Hi @Sailaja Bโ€‹ 

This is awesome!

Thanks for coming in and posting the solution. We really appreciate it.

Cheers!

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group