def get(dataset = None, include_metadata = False, mnemonics = None, **dim_values):
if not dataset and not mnemonics:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>if mnemonics and dim_values:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>config = ApiConfig()<EOL>client = ApiClient(config.host, config.app_id, config.app_secret)<EOL>client.check_correct_host()<EOL>ds = client.get_dataset(dataset) if dataset else None<EOL>reader =  MnemonicsDataReader(client, mnemonics) if mnemonics else StreamingDataReader(client, dim_values) if ds.type == '<STR_LIT>' else PivotDataReader(client, dim_values)<EOL>reader.include_metadata = include_metadata<EOL>reader.dataset = ds<EOL>return reader.get_pandasframe()<EOL>
Use this function to get data from Knoema dataset.