Skip to content
  • Home
  • About
  • Write For US
|       { One stop for all Spark Examples }
Spark by {Examples}
  • Spark
    • Spark RDD
    • Spark DataFrame
    • Spark SQL Functions
    • What’s New in Spark 3.0?
    • Spark Streaming
    • Apache Spark Interview Questions
  • PySpark
  • Pandas
  • Hive
  • Kafka
  • H2O.ai
  • Interview Q
    • Spark Interview Questions
  • More
    • Apache Hadoop
    • Apache HBase
    • Apache Cassandra
    • Snowflake Database
    • H2O Sparkling Water
    • Scala Language
    • Python NumPy
    • R Language
Menu Close
  • Spark
    • Spark RDD
    • Spark DataFrame
    • Spark SQL Functions
    • What’s New in Spark 3.0?
    • Spark Streaming
    • Apache Spark Interview Questions
  • PySpark
  • Pandas
  • Hive
  • Kafka
  • H2O.ai
  • Interview Q
    • Spark Interview Questions
  • More
    • Apache Hadoop
    • Apache HBase
    • Apache Cassandra
    • Snowflake Database
    • H2O Sparkling Water
    • Scala Language
    • Python NumPy
    • R Language
  • Home
  • About
  • Write For US
Read more about the article Convert PySpark RDD to DataFrame
PySpark

Convert PySpark RDD to DataFrame

In PySpark, toDF() function of the RDD is used to convert RDD to DataFrame. We would need to convert RDD to DataFrame as DataFrame provides more advantages over RDD. For…

0 Comments
August 14, 2020
Read more about the article PySpark – Create DataFrame with Examples
PySpark

PySpark – Create DataFrame with Examples

You can manually create a PySpark DataFrame using toDF() and createDataFrame() methods, both these function takes different signatures in order to create DataFrame from existing RDD, list, and DataFrame. You…

4 Comments
January 12, 2020
Read more about the article PySpark withColumnRenamed to Rename Column on DataFrame
PySpark

PySpark withColumnRenamed to Rename Column on DataFrame

Use PySpark withColumnRenamed() to rename a DataFrame column, we often need to rename one column or multiple (or all) columns on PySpark DataFrame, you can do this in several ways.…

16 Comments
January 11, 2020
Read more about the article Convert Spark RDD to DataFrame | Dataset
Apache Spark / Apache Spark RDD

Convert Spark RDD to DataFrame | Dataset

While working in Apache Spark with Scala, we often need to Convert Spark RDD to DataFrame and Dataset as these provide more advantages over RDD. For instance, DataFrame is a…

4 Comments
August 22, 2019
Read more about the article Spark withColumnRenamed to Rename Column
Apache Spark

Spark withColumnRenamed to Rename Column

In Spark withColumnRenamed() is used to rename one column or multiple DataFrame column names. Depends on the DataFrame schema, renaming columns might get simple to complex, especially when a column…

0 Comments
February 27, 2019
Read more about the article Spark SQL “case when” and “when otherwise”
Apache Spark

Spark SQL “case when” and “when otherwise”

Like SQL "case when" statement and Swith statement from popular programming languages, Spark SQL Dataframe also supports similar syntax using "when otherwise" or we can also use "case when" statement.

8 Comments
February 5, 2019
Read more about the article Spark Create DataFrame with Examples
Apache Spark

Spark Create DataFrame with Examples

In Spark, createDataFrame() and toDF() methods are used to create a DataFrame manually, using these methods you can create a Spark DataFrame from already existing RDD, DataFrame, Dataset, List, Seq…

2 Comments
February 1, 2019

Categories

  • Apache Hadoop
  • Apache Spark
  • Apache Spark Streaming
  • Apache Kafka
  • Apache HBase
  • Apache Cassandra
  • Snowflake Database
  • H2O Sparkling Water
  • PySpark

Recent Posts

  • R Subset Data Frame by Column Value & Name
  • R Subset data frame with Examples
  • R subset() Function – Get Rows & Columns
  • R Select Rows with Examples
  • Select Rows with Row Names in R
  • Select Rows based on Column Value in R
  • Select Rows by Index in R with Examples
  • R Select Rows by Condition with Examples
  • Export DataFrame to Text File in R
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy

About SparkByExamples.com

SparkByExamples.com is a Big Data and Spark examples community page, all examples are simple and easy to understand, and well tested in our development environment Read more ..
Copyright sparkbyexamples.com