python - ADX、KQL 和熊猫
问题描述
我在 pandas 数据框中有一个表,需要遍历一列并检查 ADX 中是否有该值。我怎样才能做到这一点?我正在考虑将 pandas 中的每个条目设置为变量,并在 KQL 中调用它。有什么想法吗?像这样,但不确定如何:
val=df['col_name'][0]
%%kql
table_name
| where value == $val
谢谢!
解决方案
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
推荐阅读
- android - 您可以从网站(在 chrome 中)打开 Google Play 电影(不是存储)到特定电影吗?
- documentation - 温莎城堡参考文档
- c# - 获取所有用作泛型类型参数的类型
- amazon-web-services - 即使禁用离线,AWS AppSync 查询也会返回缓存响应
- java - Spring Boot和Mybatis项目中多个数据源出现NoUniqueBeanDefinitionException
- python - 从 CSV 文件重命名 Python 中的 PDF 的问题
- xaml - 如何在 Xamarin 中重用相同的视图?XAML
- c# - 从 DataTemplate 设置 ItemsControl 中项目的 ZIndex
- ios - iOS GoogleMap API 密钥,如果保留为空白会产生任何问题吗?
- oracle - Oracle 虚拟专用数据库 (VPD):触发权限/函数生成无效谓词