Python dtale在用户输入后重新加载数据单元格

Python dtale在用户输入后重新加载数据单元格,python,pandas,data-visualization,Python,Pandas,Data Visualization,我有一个python脚本: 将熊猫作为pd导入 导入dtale #将dtale.app导入为dtale\u app df=pd.DataFrame([dict(firstname=“cris”,lastname=“zane”), dict(firstname=“乔”,lastname=“拜登”), dict(firstname=“kamala”,lastname=“harris”)]) search_query=“” 打印(“Hi,如果您想停止,只需输入stop”) 搜索时进行查询!=“停止”:

我有一个python脚本:

将熊猫作为pd导入
导入dtale
#将dtale.app导入为dtale\u app
df=pd.DataFrame([dict(firstname=“cris”,lastname=“zane”),
dict(firstname=“乔”,lastname=“拜登”),
dict(firstname=“kamala”,lastname=“harris”)])
search_query=“”
打印(“Hi,如果您想停止,只需输入stop”)
搜索时进行查询!=“停止”:
搜索\查询=输入(“输入搜索查询:”)
打印(搜索和查询)
d=dtale.show(df.loc[df[“firstname”]==search\u query,:],ignore\u duplicates=True)
打印(d.\U url)
它需要用户输入来过滤数据帧,然后将数据帧传递到dtale.show()方法中。但是,数据视图不会更改。例如,用户首先在数据框中搜索joe,然后搜索kamala

Hi once you want to stop just enter stop
Enter your search query: joe
joe
http://Cristians-MBP:40000
Enter your search query: kamala
kamala
http://Cristians-MBP:40000
Enter your search query: kamala
kamala
http://Cristians-MBP:40000
Enter your search query: 
但即使在刷新并单击“重新加载数据”后,视图也不会更新。“数据”视图仍显示以前的:


我认为,通过在dtale.show()方法中设置参数ignore_duplicates=True,应该可以阻止它加载以前加载的数据,但它仍然会这样做。

您不应该链接代码图像,而应该将代码粘贴到您认为可能导致错误的问题中。