I am trying to convert a sql query to python. The sql statement is as follows:
select * from table 1 union select * from table 2 union select * from table 3 un
If I understand well the issue, you are looking for the concat function.
concat
pandas.concat([df1, df2, df3, df4]) should work correctly if the column names are the same for both dataframes.
pandas.concat([df1, df2, df3, df4])