#
# Copyright 2021 DataRobot, Inc. and its affiliates.
#
# All rights reserved.
#
# DataRobot, Inc.
#
# This is proprietary source code of DataRobot, Inc. and its
# affiliates.
#
# Released under the terms of DataRobot Tool and Utility Agreement.
"""
Autogenerated DataRobot python client file.  Please don't modify.
"""

import trafaret as t
from datarobot.models.api_object import APIObject

class DatasetFeaturePlotDataResponse(APIObject):
    """
    Attributes
    ----------
    count:float
         Number of values in the bin.
    label:str
         Bin start for numerical/uncapped, or string value for categorical. The bin `==Missing==` is created for rows that did not have the feature.
    """
    _converter = t.Dict(
        {
            t.Key("count"):  t.Float(),
            t.Key("label"):  t.String(),
        }
    ).ignore_extra("*")

    def __init__(
        self,
        count,
        label,
    ):
        self.count = count
        self.label = label

    def __repr__(self):
        return (
            "DatasetFeaturePlotDataResponse("
            "count={0.count}, "
            "label={0.label}, "
        ).format(self)
