__init__.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:jupyter_vega 作者: altair-viz 项目源码 文件源码
def __init__(self, spec=None, data=None, url=None, filename=None, metadata=None):
        """Create a VegaLite display object given raw data.

        Parameters
        ----------
        spec : dict
            VegaLite spec. Not an already-serialized JSON string.
        data : dict or list
            VegaLite data. Not an already-serialized JSON string.
            Scalar types (None, number, string) are not allowed, only dict
            or list containers.
        url : unicode
            A URL to download the data from.
        filename : unicode
            Path to a local file to load the data from.
        metadata: dict
            Specify extra metadata to attach to the json display object.
        """

        super(VegaLite, self).__init__(spec=spec, data=data, url=url, filename=filename)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号