Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-6536

Add IN to python Column

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.3.1, 1.4.0
    • SQL
    • None

    Description

      In scala you can check for membership in a set using the DSL function in

      df("column").in(lit(1), lit(2))
      

      It would be nice to be able to do something similar in python (possibly without the lits (which we might revisit for scala as well) /cc rxin

      Attachments

        Activity

          People

            davies Davies Liu
            marmbrus Michael Armbrust
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: