About 8,010,000 results
Open links in new tab
  1. 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 …

  2. Manually create a pyspark dataframe - Stack Overflow

    Sep 16, 2019 · Manually create a pyspark dataframe Asked 5 years, 9 months ago Modified 12 months ago Viewed 207k times

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

    105 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: How to fillna values in dataframe for specific columns?

    Jul 12, 2017 · PySpark: How to fillna values in dataframe for specific columns? Asked 7 years, 11 months ago Modified 6 years, 2 months ago Viewed 200k times

  5. pyspark : NameError: name 'spark' is not defined

    Alternatively, you can use the pyspark shell where spark (the Spark session) as well as sc (the Spark context) are predefined (see also NameError: name 'spark' is not defined, how to solve?).

  6. 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 …

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

    Pyspark: display a spark data frame in a table format Asked 8 years, 10 months ago Modified 1 year, 10 months ago Viewed 405k times

  8. pyspark dataframe filter or include based on list

    Nov 4, 2016 · I am trying to filter a dataframe in pyspark using a list. I want to either filter based on the list or include only those records with a value in the list. My code below does not work: # …

  9. spark dataframe drop duplicates and keep first - Stack Overflow

    Aug 1, 2016 · 2 I just did something perhaps similar to what you guys need, using drop_duplicates pyspark. Situation is this. I have 2 dataframes (coming from 2 files) which are exactly same …

  10. Python/pyspark data frame rearrange columns - Stack Overflow

    Python/pyspark data frame rearrange columns Asked 8 years, 3 months ago Modified 2 years, 11 months ago Viewed 109k times