Вы можете использовать функцию concat
:
In [13]: pd.concat([x]*5)
Out[13]:
a b
0 1 2
0 1 2
0 1 2
0 1 2
0 1 2
Если вы хотите только повторить значения, а не индекс, вы можете сделать:
In [14]: pd.concat([x]*5, ignore_index=True)
Out[14]:
a b
0 1 2
1 1 2
2 1 2
3 1 2
4 1 2
использовать левое соединение
select a.* from tableA a
left join tbaleB b
on a.A1=b.B1 and a.A2=b.B2 and a.A3=b.B3 and a.A4=b.B4
where b.B1 is null
Я бы использовал not exists
:
select a.*
from a
where not exists (select 1
from b
where a.a1 = b.b1 and a.a2 = b.b2
);
Вы можете попробовать ниже, используя левое соединение
select * from tableA
left join tableB on A1=B1 and A2=B2
where B1 is null and B2 is null