我正在尝试将以下字典格式转换为数据框,但没有成功。如何使用输入中的instance_score和feature_score作为数据帧中的列来做到这一点?
输入
{'data': {'f_score': None,
'instance_score': array([ 0.99999967, -0.37898901, -0.38409877, ..., 0.0470927 ,
-0.07509494, 0.32273143]),
'feature_score': array([1, 0, 0, ..., 0, 0, 0])},
'meta': {'data_type': 'time-series',
'detr_type': 'line',
'name': 'ad'}}
代码
pd.DataFrame.from_dict(input)
答案 0 :(得分:2)
您可以调用 message.channel.send(`<@& id >`);
,指定要保留的列的子集:
<agc class="app-content" [rows]="'auto 1fr'" [height]="'100%'" [pad]="15">
<router-outlet></router-outlet>
<app-create-batch #CreateBatch></app-create-batch>
<app-create-import #CreateImport></app-create-import>
<app-create-import-newline #CreateImportNewLine></app-create-import-newline>
<app-export-data #ExportData></app-export-data>
<app-sales-transaction #SalesTransaction></app-sales-transaction>
<!-- <app-create-part #CreatePart></app-create-part> -->
<app-import-export #ImportExport></app-import-export>
<app-create-claim #CreateClaim></app-create-claim>
<app-claim-details #ClaimDetails></app-claim-details>
</agc>