test_integration.py 文件源码

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

项目:pymapd 作者: mapd 项目源码 文件源码
def test_load_empty_table_pandas(self, con, empty_table):
        # TODO: just require arrow and pandas for tests
        pd = pytest.importorskip("pandas")

        data = [(1, 1.1, 'a'),
                (2, 2.2, '2'),
                (3, 3.3, '3')]
        df = pd.DataFrame(data, columns=list('abc'))
        con.load_table(empty_table, df, method='columnar')
        result = sorted(con.execute("select * from {}".format(empty_table)))
        self.check_empty_insert(result, data)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号