Skip to content

Instantly share code, notes, and snippets.

View pawarbi's full-sized avatar

Sandeep Pawar pawarbi

View GitHub Profile
import swifter
import json
def get_modes(dataset, workspace):
'''
Author: Sandeep Pawar | fabric.guru
Returns storage mode of a dataset as identified from TMSL
Fabric uses XMLA client so this will work only for the semantic models in Premium capacity
Swifter is used to process a long list faster using .apply method
import json
import pandas as pd
import sempy.fabric as fabric
dataset_name = "<>"
workspace_name = "<>"
def custom_flatten(json_object, dataset_name, table_name=None, table_properties=None, column_name=None, flat_list=None):
if flat_list is None: