Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-37197 Behaviour inconsistency between pandas and pandas API on Spark
  3. SPARK-37189

pyspark.pandas histogram accepts the range option but does not use it

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.2.0
    • None
    • PySpark
    • None

    Description

      In pyspark.pandas if you write a line like this

      DF.plot.hist(bins=30, range=[0, 20], title="US Counties – DeathsPer100k (<20)")

      it compiles and runs, but the plot does not respect the range. All the values are shown.

      The workaround is to create a new DataFrame that pre-selects just the rows you want, but line above should work also.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              chconnell Chuck Connell
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: