try: from kmdvalg import kommune except ImportError: import sys, os sys.path.append( os.getcwd()+os.sep+"..") print("Path appended. This is dev code.") from kmdvalg import kommune data = kommune.data() # Extract from variable data.get_kommuner() kommuner = data.kommuner for k in kommuner: print(k) dic_cph = data.get_kommune_dic('København') for key in dic_cph: print(key, dic_cph[key]) #df_sync = data.get_kommuner_df(make=True, async=False) df_sync = data.get_kommuner_df(async=False) #print(df_sync) df_async = data.get_kommuner_df(make=True, async=True) #df_async = data.get_kommuner_df(async=True) #print(df_async) is_equal = df_sync.equals(df_async) print("Are asyncio equal to sync?:", is_equal) if not is_equal: print(df_sync) print(df_async)