def test_c_bind_pair(self): f1 = Frame(self.sds, self.df_cb_1) f2 = Frame(self.sds, self.df_cb_2) result_df = f1.cbind(f2).compute() self.assertTrue(isinstance(result_df, pd.DataFrame)) target_df= pd.concat([self.df_cb_1, self.df_cb_2], axis=1) self.assertTrue(target_df.equals(result_df))
def test_c_bind_triple_twostep(self): f1 = Frame(self.sds, self.df_cb_1) f2 = Frame(self.sds, self.df_cb_2) f3 = Frame(self.sds, self.df_cb_3) tmp_df = f1.cbind(f2).compute() result_df = Frame(self.sds, tmp_df).cbind(f3).compute() self.assertTrue(isinstance(result_df, pd.DataFrame)) target_df = pd.concat([self.df_cb_1, self.df_cb_2, self.df_cb_3], axis=1) self.assertTrue(target_df.equals(result_df))