PySAL 权重命令中的静音警告使用 geopandas df



我正在计算一个地熊猫df的权重矩阵。我知道有一个关键字可以让我使岛屿警告静音(pysal doc(,但是当我尝试使用它时,我收到关键字错误......

wt = ps.weights.DistanceBand.from_dataframe(df, threshold=600000, binary=True, silent_island_warning=True)

错误。。。

TypeError: __init__() got an unexpected keyword argument 'silent_island_warning'

任何帮助将不胜感激。谢谢!

帮助程序函数使用"silent"参数,而不是使用"silent_island_warning"参数的 W 对象。

wt = ps.weights.DistanceBand.from_dataframe(df, threshold=600000, binary=True, silent=True)

见来源: https://github.com/pysal/pysal/blob/master/pysal/weights/Distance.py

最新更新