Good idea. This might work:
ClassMethod HandleJSON()
{
S Results= {
"ClassA":{"ClassName":"ClassA","ACount":367191880,"BCount":367191880,"CurrentDiff":0,"PreviousDiff":0,"ReportDate":"2024-03-02 00:00:00"},
"ClassB":{"ClassName":"ClassB","ACount":5352149227,"BCount":5352149227,"CurrentDiff":0,"PreviousDiff":0,"ReportDate":"2024-03-02 00:00:00"}
}
w ..GetCsv(Results.%ToJSON())
}
ClassMethod GetCsv(json As %String) As %String [ Language = python ]
{
import pandas
df = pandas.read_json(json, orient="index")
return df.to_csv(index=False)
}
When the comparison string ('ABC%' and 'ABC') is fixed.
AH ok
Certifications & Credly badges:
Malte has no Certifications & Credly badges yet.
Global Masters badges:

Followers:
Malte has no followers yet.
Following:
Malte has not followed anybody yet.
Hi Ruslan,
something like
might do the trick.