File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 2424[Oo ]bj /
2525[Ll ]og /
2626* .tar.gz
27+ * .ftr
2728
2829# Visual Studio 2015 cache/options directory
2930.vs /
@@ -267,4 +268,4 @@ __pycache__/
267268.vscode
268269
269270# Python Environments
270- env /
271+ * venv /
Original file line number Diff line number Diff line change 11import time
22import os
33import uuid
4+ import json
45import pandas as pd
56
67from fds .analyticsapi .engines import ApiException
@@ -83,11 +84,11 @@ def main():
8384 result_response = quant_calculations_api .get_calculation_unit_result_by_id (id = calculation_id ,
8485 unit_id = calculation_unit_id )
8586 print ("Calculation Data" )
86- output_calculation_result (result_response [0 ].read ())
87+ output_calculation_result (json . loads ( result_response [0 ].read ())[ 'data' ] )
8788 result_response = quant_calculations_api .get_calculation_unit_info_by_id (id = calculation_id ,
8889 unit_id = calculation_unit_id )
8990 print ("Calculation Info" )
90- output_calculation_result (result_response [0 ].read ())
91+ output_calculation_result (json . loads ( result_response [0 ].read ())[ 'data' ] )
9192 else :
9293 print ("Calculation Unit Id:" +
9394 calculation_unit_id + " Failed!!!" )
@@ -100,7 +101,7 @@ def main():
100101
101102
102103def output_calculation_result (result ):
103- stachBuilder = StachExtensionFactory .get_row_organized_builder (
104+ stachBuilder = StachExtensionFactory .get_column_organized_builder (
104105 StachVersion .V2 )
105106 stachExtension = stachBuilder .set_package (result ).build ()
106107 dataFramesList = stachExtension .convert_to_dataframe ()
You can’t perform that action at this time.
0 commit comments