I want to display data from .pbf (open street map, xml format) file.
I have seen this answer, but I get an error:
NameError: name 'tag_genome' is not defined
Is sth wrong in his code?
EDITED QUESTION:
I edited his code a little, got a code:
df_osm = pd.DataFrame(handler.osm_data, columns=data_colnames)
tag_genome = pd.DataFrame(columns=data_colnames)
df_osm = tag_genome.sort_values(by=['type', 'id', 'ts'])
print(df_osm.head())
returns:
Empty DataFrame
Columns: [type, id, version, visible, ts, uid, user, chgset, ntags, tagkey, tagvalue]
Index: []
Why It says that dataframe
is empty, when pbf file
is existing..