Making histogram with Spark DataFrame column

前端 未结 6 1958
盖世英雄少女心
盖世英雄少女心 2020-12-16 03:18

I am trying to make a histogram with a column from a dataframe which looks like

DataFrame[C0: int, C1: int, ...]

If I were to make a histog

6条回答
  •  抹茶落季
    2020-12-16 03:31

    One easy way could be

    import pandas as pd
    x = df.select('symboling').toPandas()  # symboling is the column for histogram
    x.plot(kind='hist')
    

提交回复
热议问题