Skip to content
  • Home
  • Technologies
    • Scala
    • Java
    • Hadoop
    • Apache Spark
    • C
  • Tips & Tricks
    • Unix
    • Java 8
  • Blog
  • About Us
Latest Posts:
How to replace multiple strings with their corresponding replacement strings in Scala
How to make the first character uppercase of each word of a List in Scala
How to separate even and odd numbers in a List of Integers in Scala

Clear ur Doubt

  • Home
  • Technologies
    • Scala
    • Java
    • Hadoop
    • Apache Spark
    • C
  • Tips & Tricks
    • Unix
    • Java 8
  • Blog
  • About Us
  • Home
  • Blog
  • withcolumnrenamed

Tag: withcolumnrenamed

Jun 05

How to rename a column in a Dataframe in Apache Spark

Sai Gowtham BadvityLeave a commentApache Spark, Scaladataframe, spark-shell, withcolumnrenamed

Hey there! Welcome to ClearUrDoubt.com. In this post, we will look at withColumnRenamed() function in Apache Spark SQL API. withColumnRenamed(String columnName, String newColumnName) is used to rename a column in a Dataframe. Let’s look at the below code snippet in spark-shell for Read more

Recent Posts

  • How to replace multiple strings with their corresponding replacement strings in Scala
  • How to make the first character uppercase of each word of a List in Scala
  • How to separate even and odd numbers in a List of Integers in Scala

Recent Comments

  • Sai Gowtham Badvity on Calculator program in Scala
  • Sai Aditya on Calculator program in Scala
  • pragadeeshwaran on How to add a new column and update its value based on the other column in the Dataframe in Spark
March 2023
S M T W T F S
 1234
567891011
12131415161718
19202122232425
262728293031  
« Feb    
Copyright © All rights reserved.
University Hub by WEN Themes