Skip to content
  • Home
  • About
  • Write For US
|         *** Please Subscribe for Ad Free & Premium Content ***
Spark By {Examples}
  • Log in
  •  | 
  • Join for Ad Free
  • Spark
    • Spark Introduction
    • Spark RDD Tutorial
    • Spark SQL Functions
    • What’s New in Spark 3.0?
    • Spark Streaming
    • Apache Spark on AWS
    • Apache Spark Interview Questions
  • PySpark
  • Pandas
  • R
    • R Programming
    • R Data Frame
    • R dplyr Tutorial
    • R Vector
  • Hive
  • Snowflake
  • FAQ
    • Spark Interview Questions
    • MongoDB Interview Questions
  • Tutorials
    • H2O.ai
    • AWS
    • Python
    • MongoDB
    • Apache Kafka
    • Apache Hadoop
    • NumPy
    • Apache HBase
    • Apache Cassandra
    • H2O Sparkling Water
    • Scala Language
  • Toggle website search
Menu Close
  • Spark
    • Spark Introduction
    • Spark RDD Tutorial
    • Spark SQL Functions
    • What’s New in Spark 3.0?
    • Spark Streaming
    • Apache Spark on AWS
    • Apache Spark Interview Questions
  • PySpark
  • Pandas
  • R
    • R Programming
    • R Data Frame
    • R dplyr Tutorial
    • R Vector
  • Hive
  • Snowflake
  • FAQ
    • Spark Interview Questions
    • MongoDB Interview Questions
  • Tutorials
    • H2O.ai
    • AWS
    • Python
    • MongoDB
    • Apache Kafka
    • Apache Hadoop
    • NumPy
    • Apache HBase
    • Apache Cassandra
    • H2O Sparkling Water
    • Scala Language
  • Toggle website search
  • Home
  • About
  • Write For US
Read more about the article Spark Cast String Type to Integer Type (int)
Apache Spark

Spark Cast String Type to Integer Type (int)

In Spark SQL, in order to convert/cast String Type to Integer Type (int), you can use cast() function of Column class, use this function with withColumn(), select(), selectExpr() and SQL…

6 Comments
March 12, 2021
Read more about the article PySpark Convert String Type to Double Type
PySpark

PySpark Convert String Type to Double Type

In PySpark SQL, using the cast() function you can convert the DataFrame column from String Type to Double Type or Float Type. This function takes the argument string representing the…

0 Comments
March 12, 2021
Read more about the article Spark select() vs selectExpr() with Examples
Apache Spark

Spark select() vs selectExpr() with Examples

Spark SQL select() and selectExpr() are used to select the columns from DataFrame and Dataset, In this article, I will explain select() vs selectExpr() differences with examples. Both these are…

0 Comments
August 29, 2020
Read more about the article Pyspark – Get substring() from a column
PySpark

Pyspark – Get substring() from a column

In PySpark, the substring() function is used to extract the substring from a DataFrame string column by providing the position and length of the string you wanted to extract. In…

2 Comments
August 28, 2020
Read more about the article PySpark – Cast Column Type With Examples
PySpark

PySpark – Cast Column Type With Examples

In PySpark, you can cast or change the DataFrame column data type using cast() function of Column class, in this article, I will be using withColumn(), selectExpr(), and SQL expression…

0 Comments
August 14, 2020
Read more about the article Spark – How to Change Column Type?
Apache Spark

Spark – How to Change Column Type?

To change the Spark SQL DataFrame column type from one data type to another data type you should use cast() function of Column class, you can use this on withColumn(),…

8 Comments
November 12, 2019
Read more about the article Spark SQL – Add Day, Month, and Year to Date
Apache Spark / Spark SQL Functions

Spark SQL – Add Day, Month, and Year to Date

Spark DataFrame example of how to add a day, month and year to a Date column using Scala language and Spark SQL Date and Time functions.

10 Comments
July 27, 2019

Top Tutorials

  • Apache Spark Tutorial
  • PySpark Tutorial
  • Python Pandas Tutorial
  • R Programming Tutorial
  • Python NumPy Tutorial
  • Apache Hive Tutorial
  • Apache HBase Tutorial
  • Apache Cassandra Tutorial
  • Apache Kafka Tutorial
  • Snowflake Data Warehouse Tutorial
  • H2O Sparkling Water Tutorial

Categories

  • Apache Spark
  • PySpark
  • Pandas
  • R Programming
  • Snowflake Database
  • NumPy
  • Apache Hive
  • Apache HBase
  • Apache Kafka
  • Apache Cassandra
  • H2O Sparkling Water

Legal

  • Privacy Policy
  • Refund Policy
  • Terms of Use

About SparkByExamples.com

SparkByExamples is made for learning and training in Big Data, Machine learning and Artificial Intelligence. Our tutorials are written and curated by expers with simple examples to help you understand better. When you use SparkByExamples, you agree to have read and accepted our terms of use, and privacy policy.
  • Opens in a new tab
  • Opens in a new tab
  • Opens in a new tab
  • Opens in a new tab
  • Opens in a new tab
[email protected]
+1 (949) 345-0676
Desert Bloom
Irvine, CA 92618
USA
Copyright 2023 www.SparkByExamples.com. All rights reserved.