我正在计算 geopandas df 的权重矩阵。我知道有一个关键字可以让我静音 island 警告 ( 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'
任何帮助将非常感激。谢谢!