当前位置: 首页>>代码示例>>Python>>正文


Python common.TestPlotBase类代码示例

本文整理汇总了Python中pandas.tests.plotting.common.TestPlotBase的典型用法代码示例。如果您正苦于以下问题:Python TestPlotBase类的具体用法?Python TestPlotBase怎么用?Python TestPlotBase使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了TestPlotBase类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: setup_method

    def setup_method(self, method):
        TestPlotBase.setup_method(self, method)
        import matplotlib as mpl
        mpl.rcdefaults()

        self.ts = tm.makeTimeSeries()
        self.ts.name = 'ts'
开发者ID:BobMcFry,项目名称:pandas,代码行数:7,代码来源:test_misc.py

示例2: setUp

    def setUp(self):
        TestPlotBase.setUp(self)
        import matplotlib as mpl
        mpl.rcdefaults()

        self.ts = tm.makeTimeSeries()
        self.ts.name = 'ts'
开发者ID:tsdlovell,项目名称:pandas,代码行数:7,代码来源:test_misc.py

示例3: setUp

    def setUp(self):
        TestPlotBase.setUp(self)
        freq = ["S", "T", "H", "D", "W", "M", "Q", "A"]
        idx = [period_range("12/31/1999", freq=x, periods=100) for x in freq]
        self.period_ser = [Series(np.random.randn(len(x)), x) for x in idx]
        self.period_df = [DataFrame(np.random.randn(len(x), 3), index=x, columns=["A", "B", "C"]) for x in idx]

        freq = ["S", "T", "H", "D", "W", "M", "Q-DEC", "A", "1B30Min"]
        idx = [date_range("12/31/1999", freq=x, periods=100) for x in freq]
        self.datetime_ser = [Series(np.random.randn(len(x)), x) for x in idx]
        self.datetime_df = [DataFrame(np.random.randn(len(x), 3), index=x, columns=["A", "B", "C"]) for x in idx]
开发者ID:ChristopherShort,项目名称:pandas,代码行数:11,代码来源:test_datetimelike.py

示例4: setup_method

    def setup_method(self, method):
        TestPlotBase.setup_method(self, method)
        import matplotlib as mpl
        mpl.rcdefaults()

        self.ts = tm.makeTimeSeries()
        self.ts.name = 'ts'

        self.series = tm.makeStringSeries()
        self.series.name = 'series'

        self.iseries = tm.makePeriodSeries()
        self.iseries.name = 'iseries'
开发者ID:AllenDowney,项目名称:pandas,代码行数:13,代码来源:test_series.py

示例5: setUp

    def setUp(self):
        TestPlotBase.setUp(self)
        import matplotlib as mpl

        mpl.rcdefaults()

        self.ts = tm.makeTimeSeries()
        self.ts.name = "ts"

        self.series = tm.makeStringSeries()
        self.series.name = "series"

        self.iseries = tm.makePeriodSeries()
        self.iseries.name = "iseries"
开发者ID:parthea,项目名称:pandas,代码行数:14,代码来源:test_series.py

示例6: setUp

    def setUp(self):
        TestPlotBase.setUp(self)
        freq = ['S', 'T', 'H', 'D', 'W', 'M', 'Q', 'A']
        idx = [period_range('12/31/1999', freq=x, periods=100) for x in freq]
        self.period_ser = [Series(np.random.randn(len(x)), x) for x in idx]
        self.period_df = [DataFrame(np.random.randn(len(x), 3), index=x,
                                    columns=['A', 'B', 'C'])
                          for x in idx]

        freq = ['S', 'T', 'H', 'D', 'W', 'M', 'Q-DEC', 'A', '1B30Min']
        idx = [date_range('12/31/1999', freq=x, periods=100) for x in freq]
        self.datetime_ser = [Series(np.random.randn(len(x)), x) for x in idx]
        self.datetime_df = [DataFrame(np.random.randn(len(x), 3), index=x,
                                      columns=['A', 'B', 'C'])
                            for x in idx]
开发者ID:DGrady,项目名称:pandas,代码行数:15,代码来源:test_datetimelike.py


注:本文中的pandas.tests.plotting.common.TestPlotBase类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。