I have done what @mforezdev suggests in the following thread with osmium and pandas libraries:
How to extract and visualize data from OSM file in Python
I created a dataframe from my .osm file and then inserted its elements in a table in PostgreSQL. Then, i want to insert the table from PostgreSQL to QGIS as a vector layer. But, my data have not geometry reference.
So, i tried to append elem.location at the osm_data list in the tag_inventory function, but it didn't work.
I can't find how to get the geometry column from my .osm file.
Does anyone know how can i do this?