After scrapping with beautiful soup, I have 2 tables :
x = PrettyTable()
x.field_names = ['Titre', 'Price']
y = PrettyTable()
y.field_names = ['Description']
OUTPUT:
x =
+-----------------+
| Titre | Price |
+-----------------+
| a | abc |
| b | xyz |
+-----------------
y =
+-----------------+
| DESCRIPTION |
+-----------------+
| abc |
| xyz |
+-----------------
Desired Output:
+-----------------+-----------------+
| Titre | Price | DESCRIPTION |
+-----------------+-----------------+
| a | abc | abc |
| b | xyz | xyz |
+-----------------+-----------------+
Is it possible to merge them ?
To have something like :
z = PrettyTable()
z.field_names = ['Titre', 'Price','Description']
Possible solution in case of number of rows in "y" should be less or equal to number of rows in "x". Or you can just switch the "x" "y".
Result would look like this: