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']