Skip to content

Commit

Permalink
Merge branch 'm-kovalsky/issue288'
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kovalsky committed Nov 19, 2024
2 parents ed1444f + 551eae3 commit 361c0da
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions src/sempy_labs/_model_bpa.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,23 +400,10 @@ def translate_using_spark(rule_file):
dfExport["Timestamp"] = now
dfExport["RunId"] = runId
dfExport["Configured By"] = configured_by

dfExport["RunId"] = dfExport["RunId"].astype("int")

colName = "Capacity Name"
dfExport.insert(0, colName, dfExport.pop(colName))
colName = "Capacity Id"
dfExport.insert(1, colName, dfExport.pop(colName))
colName = "Workspace Name"
dfExport.insert(2, colName, dfExport.pop(colName))
colName = "Workspace Id"
dfExport.insert(3, colName, dfExport.pop(colName))
colName = "Dataset Name"
dfExport.insert(4, colName, dfExport.pop(colName))
colName = "Configured By"
dfExport.insert(5, colName, dfExport.pop(colName))

dfExport.columns = dfExport.columns.str.replace(" ", "_")
dfExport = dfExport[list(icons.bpa_schema.keys())]
dfExport["RunId"] = dfExport["RunId"].astype("int")
schema = {
key.replace(" ", "_"): value for key, value in icons.bpa_schema.items()
}
Expand Down

0 comments on commit 361c0da

Please sign in to comment.