About 9,160,000 results
Open links in new tab
  1. pyspark - Adding a dataframe to an existing delta table throws …

    Jun 9, 2024 · You'll need to complete a few actions and gain 15 reputation points before being able to upvote. Upvoting indicates when questions and answers are useful. What's reputation …

  2. python - Spark Equivalent of IF Then ELSE - Stack Overflow

    python apache-spark pyspark apache-spark-sql edited Dec 10, 2017 at 1:43 Community Bot 1 1

  3. pyspark - How to use AND or OR condition in when in Spark

    107 pyspark.sql.functions.when takes a Boolean Column as its condition. When using PySpark, it's often useful to think "Column Expression" when you read "Column". Logical operations on …

  4. PySpark: multiple conditions in when clause - Stack Overflow

    Jun 8, 2016 · when in pyspark multiple conditions can be built using & (for and) and | (for or). Note:In pyspark t is important to enclose every expressions within parenthesis () that combine …

  5. Comparison operator in PySpark (not equal/ !=) - Stack Overflow

    Aug 24, 2016 · Comparison operator in PySpark (not equal/ !=) Asked 9 years, 2 months ago Modified 1 year, 8 months ago Viewed 164k times

  6. Best way to get the max value in a Spark dataframe column

    1 Comment Vyom Shrivastava Over a year ago Make sure you have the correct imports, You need to import the following: from pyspark.sql.functions import max The max we use here is …

  7. Pyspark: display a spark data frame in a table format

    Pyspark: display a spark data frame in a table format Asked 9 years, 2 months ago Modified 2 years, 2 months ago Viewed 411k times

  8. python - Concatenate two PySpark dataframes - Stack Overflow

    May 20, 2016 · Utilize simple unionByName method in pyspark, which concats 2 dataframes along axis 0 as done by pandas concat method. Now suppose you have df1 with columns id, …

  9. How to check if spark dataframe is empty? - Stack Overflow

    Sep 22, 2015 · 4 On PySpark, you can also use this bool(df.head(1)) to obtain a True of False value It returns False if the dataframe contains no rows

  10. Pyspark: Parse a column of json strings - Stack Overflow

    I have a pyspark dataframe consisting of one column, called json, where each row is a unicode string of json. I'd like to parse each row and return a new dataframe where each row is the …