华为云AI开发平台ModelArts饼形图_云淘科技

概述

对数据集的某一列,画出对应的饼形图。

输入

参数

子参数

参数说明

inputs

dataframe

inputs为字典类型,dataframe为pyspark中的DataFrame类型对象

输出

参数说明

参数

子参数

参数说明

select_column_name

选择列的列名

numeric_intervals_str

画饼形图时,每个区间的长度组成的字符串,逗号隔开

numeric_interval_length

如果numeric_intervals_str没有设置,默认饼形图的每个区间的长度一样,numeric_interval_length表示此时的区间长度

show_share_number

饼形图的份额数目,默认为5

figure_length

图的长度

figure_width

图的宽度

样例

inputs = {
    "dataframe": None  # @input {"label":"dataframe","type":"DataFrame"}
}
params = {
    "inputs": inputs,
    "select_column_name": "",  # @param {"label":"select_column_name","type":"string","required":"true","helpTip":""}
    "numeric_intervals_str": "",  # @param {"label":"numeric_intervals_str","type":"string","required":"false","helpTip":""}
    "numeric_interval_length": "",  # @param {"label":"numeric_interval_length","type":"string","required":"false","helpTip":""}
    "show_share_number": 5,  # @param {"label":"show_share_number","type":"integer","required":"false","range":"(0,2147483647]","helpTip":""}
    "figure_length": "",  # @param {"label":"figure_length","type":"integer","required":"false","range":"(0,2147483647]","helpTip":""}
    "figure_width": ""  # @param {"label":"figure_width","type":"integer","required":"false","range":"(0,2147483647]","helpTip":""}
}
plot_pie____id___ = MLSPlotPie(**params)
plot_pie____id___.run()

父主题: 数据分析

同意关联代理商云淘科技,购买华为云产品更优惠(QQ 78315851)

内容没看懂? 不太想学习?想快速解决? 有偿解决: 联系专家