In [ ]:
%matplotlib inline
import pandas as pd
import geopandas as gpd
import matplotlib.pyplot as plt
import mplleaflet
from SCB import SCB
In [ ]:
scb = SCB('http://api.scb.se/OV0104/v1/doris/sv/ssd/BE/BE0101/BE0101H/FoddaK')
In [ ]:
scb.filter(code='Region', kind='all', values=['*'])
scb.filter(code='Tid', kind='all', values=['*'])
In [ ]:
df = scb.get()
In [ ]:
df.head(3)
In [ ]:
shp = gpd.GeoDataFrame.from_file('Lan/lan.shp')
In [ ]:
shp.plot()
In [ ]:
df_lan.set_index('LNNAMN', inplace=True)
shp.set_index('LNNAMN', inplace=True)
combined = pd.concat([shp, df_lan])
In [ ]:
df_lan.index[2]
In [ ]:
shp.index[2]
In [ ]: