cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Get Started Discussions
Start your journey with Databricks by joining discussions on getting started guides, tutorials, and introductory topics. Connect with beginners and experts alike to kickstart your Databricks experience.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Save dataframe to the same variable

alesventus
Contributor

I would like to know if there is any difference if I save dataframe during tranformation to itself as first code or to new dataframe as second example.

Thanks

log_df = log_df.withColumn("process_timestamp",from_utc_timestamp(lit(current_timestamp()),"Europe/Amsterdam")) 

or 

new_df = log_df.withColumn("process_timestamp",from_utc_timestamp(lit(current_timestamp()),"Europe/Amsterdam")) 

 

0 REPLIES 0

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local communityโ€”sign up today to get started!

Sign Up Now