首页 > 解决方案 > ADX、KQL 和熊猫

问题描述

我在 pandas 数据框中有一个表,需要遍历一列并检查 ADX 中是否有该值。我怎样才能做到这一点?我正在考虑将 pandas 中的每个条目设置为变量,并在 KQL 中调用它。有什么想法吗?像这样,但不确定如何:

val=df['col_name'][0]

%%kql 
table_name
| where value == $val

谢谢!

标签: pythonpandaskqladx

解决方案


Note sure I understand the requirement, best if you can specify a minimal example with the df in Python, and a table in ADX (using datatable operator).

Anyway, just fyi, you can copy variables from Jupyter to Kusto using let, see example


推荐阅读