About 50 results
Open links in new tab
  1. 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 …

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

    Aug 24, 2016 · The selected correct answer does not address the question, and the other answers are all wrong for pyspark. There is no "!=" operator equivalent in pyspark for this …

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

    Jun 8, 2016 · Very helpful observation 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 …

  4. cannot resolve column due to data type mismatch PySpark

    Mar 12, 2020 · cannot resolve column due to data type mismatch PySpark Asked 5 years, 10 months ago Modified 4 years, 10 months ago Viewed 39k times

  5. python - PySpark: "Exception: Java gateway process exited before ...

    I'm trying to run PySpark on my MacBook Air. When I try starting it up, I get the error: Exception: Java gateway process exited before sending the driver its port number when sc = …

  6. How to find count of Null and Nan values for each column in a …

    Jun 19, 2017 · How to find count of Null and Nan values for each column in a PySpark dataframe efficiently? Asked 8 years, 6 months ago Modified 2 years, 9 months ago Viewed 291k times

  7. Show distinct column values in pyspark dataframe - Stack Overflow

    With pyspark dataframe, how do you do the equivalent of Pandas df['col'].unique(). I want to list out all the unique values in a pyspark dataframe column. Not the SQL type way …

  8. Newest 'pyspark' Questions - Stack Overflow

    3 days ago · How to run Pyspark UDF separately over dataframe groups Grouping a Pyspark dataframe, applying time series analysis UDF to each group SOLVED See below I have a …

  9. How to export a table dataframe in PySpark to csv?

    Jul 13, 2015 · I am using Spark 1.3.1 (PySpark) and I have generated a table using a SQL query. I now have an object that is a DataFrame. I want to export this DataFrame object (I have …

  10. Pyspark dataframe LIKE operator - Stack Overflow

    Oct 24, 2016 · What is the equivalent in Pyspark for LIKE operator? For example I would like to do: SELECT * FROM table WHERE column LIKE "*somestring*"; looking for something easy …