blob: e92c3af42cf9d3c5c70ec6ec1f50e473aeffbc05 [file] [log] [blame]
Marc Kupietzdc0aa272021-07-27 15:34:54 +02001#!/usr/bin/python
2
3from KorAPClient import KorAPConnection, KorAPClient
4import plotly.express as px
5
6df = KorAPConnection(verbose=True) \
7 .frequencyQuery("sozusagen", vc=["corpusSigle=FOLK", "corpusSigle!=FOLK"])
8df = KorAPClient.ipm(df)
9df['error_y'] = df["conf.high"] - df["ipm"]
10df['error_y_minus'] = df["ipm"] - df["conf.low"]
11fig = px.bar(df, title="sozusagen", x="vc", y="ipm", error_y="error_y", error_y_minus="error_y_minus")
12fig.show()