cost 256 ms
安裝`pysal`但得到錯誤報告:`ERROR: No.egg-info directory found in C:\users\xxxx\AppData\Local\Temp\pip-pip-egg-info-ygsexy4a`

[英]install `pysal` but get error report: `ERROR: No .egg-info directory found in C:\users\xxxx\AppData\Local\Temp\pip-pip-egg-info-ygsexy4a`

嘗試安裝pysal (Python 空間分析庫),但得到錯誤報告。 我已經搜索並閱讀了很多答案,大多數解決方案都是 upgrade setuptools 。 但我試過了,沒有任何改變。 我嘗試用 pip 重新安裝pandas ,一切順利,沒有任何錯誤報告。 順便說一句,我也試過安裝舊版本的setu ...

2022-07-30 01:20:28   1   13    pip / pysal  
用鄰居的平均值為 geopandas 數據框估算 NaN

[英]impute NaN with neighbors' average for a geopandas dataframe

我有一個 geopandas 數據框,其中列中有 NaN。 我想用其鄰居的平均值來估算 NaN。 我編寫了以下示例,如果有人能幫助我完成最后的步驟,我將不勝感激。 謝謝。 例如, index 2在人口估計上有一個缺失值,它的鄰居是[0, 35, 36, 48, 49, 50, 27, 28, 3 ...

PySAL 和 spatstat 有什么區別?

[英]What are the differences between PySAL and spatstat?

我在 R 中使用 spatstat 已經有一段時間了,我很好奇這些包(python 中的 PySAL 和 R 中的 spatstat)之間的最大區別是功能方面的。 是更強大還是更快,有更多的預設功能嗎? 感謝負載 ...

Hvplot AttributeError: 'list' object 沒有屬性 'xy'

[英]Hvplot AttributeError: 'list' object has no attribute 'xy'

我無法使用 PySAL 制作交互式 map。 我想形象化荷蘭語“gemeente”(市政當局)。 您可以從荷蘭統計局下載形狀文件: https://www.cbs.nl/nl-nl/dossier/nederland-regionaal/geografische-data/wijk-en-buur ...

Python - 無法導入 Pysal

[英]Python - Can't import Pysal

我在 Windows 10 中使用 Pycharm,我需要導入 Pysal 以使用帶有 Pandas 的 DBF 文件進行一些數據轉換。 為此,我有: 我必須安裝 pysal 包,但是當我運行“ pip install pysal ”時,出現以下錯誤: 如何在我的環境中安裝 pysal? 謝謝! ...

在 Python 中安裝形狀模塊時出錯

[英]Error in installing shapes module in Python

嘿,伙計們,我編寫了一些代碼來使用 Python 中的烏龜和形狀制作一個簡單的小屋,但是當我導入形狀時,它向我顯示錯誤,這是錯誤 這是我的代碼 然后我閱讀了一個解決方案來安裝“pysal”但是當我從cmd安裝pysal(pip install pysal)然后它在安裝pysal時也顯示這個錯誤 ...

Pysal 問題模塊沒有屬性“打開”

[英]Pysal issue module has no attribute 'open'

我對“Pysal”庫有疑問。 我可以成功安裝 Pysal 並導入它。 但是,每當我使用 Pysal 的 function 時,例如,使用 'open' 打開文件時,我都會遇到問題,它顯示 'module 'pysal' 沒有屬性 'open' '。即使我使用其他屬性而不是“開放”,我仍然會遇到問題 ...

在 Python 中導入 plot_spatial_weights 時出錯

[英]Error while import plot_spatial_weights in Python

我試圖進口plot_spatial_weights從pysal.viz.splot.libpysal 這就是我在做什么 from pysal.viz.splot.libpysal import plot_spatial_weights 我得到了錯誤 ...

2020-03-11 10:25:21   1   300    python / pysal  
基於pysal中距離的內核權重

[英]Kernel weights based on distance in pysal

我想在 pysal 中創建一個基於距離的空間權重矩陣,稍后將其輸入到 pysal 的“spreg”子模塊的空間回歸方法中。 下面是一個小的可重現的代碼示例: python 返回的錯誤是“異常:對角線上的所有條目必須等於 0”。 另一方面,僅使用具有二進制權重的 k 最近鄰權重, 工作正常。 ...

2020-01-03 11:49:48   1   148    pysal  
Pysal 沒有屬性 open

[英]Pysal does not have attribute open

嗨,我正在將 Anaconda 與 Python 3.7 一起使用,並且已將 Pysal 導入到我的環境中。 現在我正在嘗試導入一個數據集並用 pysal 打開它,令我驚訝的是,pysal 似乎沒有打開屬性... 我收到一個錯誤AttributeError: module 'pysal' has ...

2019-12-23 12:27:12   1   1062    pysal  
pysal 庫是否有用於生成女王連續性的附加組件?

[英]Is there an add on for the pysal library for generating a queen contiguity?

我正在嘗試對 shapefile(shp) 執行空間自相關 function。 我如何為此生成女王連續性? 我閱讀了 pysal 文檔並看到了“queen_from_shapefile”,但出現錯誤。 這是我的代碼:shp= gpd.read_file(r'..\data\districts.sh ...

Pysal OLS功能無法顯示摘要輸出

[英]Pysal OLS function can not show summary output

我在python中嘗試了PYSAL庫以使用基本OLS方法,我遵循了pysal庫中的官方文檔,由於某種原因,可以顯示OLS的摘要,它表示“ str”對象沒有屬性“ summary” ...

如何從Pysal修復LISA群集貼圖的顏色

[英]How to fix colors of LISA Cluster maps from Pysal

我正在使用Pysal的LISA Cluster包來創建LISA(空間自相關的本地指示器)圖。 如文檔示例所示,淺藍色用於標識歸類為“低-高”的區域 問題是,當我生成地圖時,在四個類別(HH,HL,LH,LL)的每個類別中都沒有區域時,歸因於現有類別的顏色會改變,從而產生了一個問 ...

PySAL OLS模型:AttributeError:'OLS'對象沒有屬性'predict'

[英]PySAL OLS Model: AttributeError: 'OLS' object has no attribute 'predict'

我將我的數據划分為訓練和驗證樣本,並成功地將我的模型與三種類型的線性模型相匹配。 我無法弄清楚如何做的是將模型應用於驗證樣本以評估擬合。 當我嘗試將模型應用到保留樣本時(對不起,我知道這不是一個可重現的例子,但我認為這個問題很清楚。我只是把這個片段放在這里是為了完整。請溫柔!) : ...

突然,Probit無法在PySAL(1.14.4)上運行

[英]Suddenly, Probit doesn't work on PySAL (1.14.4)

直到上周,我才有一段代碼來計算發生一系列事件的幾率,但是從本周開始,該代碼將無法正常工作。 代碼如下: 我得到這個錯誤: 通常,我只有DeprecationWarning ,但是代碼有效。 從今天起,該代碼將無法使用。 考慮我當前正在使用pysal 1.14.4, nu ...

2019-03-18 16:08:47   1   44    python / pysal  
Python:如何從 shapefile 計算指標的空間自相關?

[英]Python: how to compute the spatial autocorrelation of indicators from a shapefile?

我正在使用geopandas讀取瑞士市政當局的 shapefile,即municipalities.shp 。 對於 170,我有人口信息,即population.csv文件可以在這個 repo here 中找到。 是否可以通過所謂的BFS number合並信息。 現在,對於 170 個城市中 ...

通過使用pysal的weights對象返回鄰居的總數

[英]return the total number of neighbors by using pysal's weights object

我構造一個權重對象: pysal中的Weights對象具有近鄰屬性,如下所示: 它將返回一個字典: {0: [3, 1], 1: [0, 2, 2], 2: [1, 2], 3: [0, 1, 1]} 。 我檢查了pysal的api ,找到了很多方法和屬性,以返回有關鄰居數 ...

2018-12-06 16:18:43   1   27    pysal  

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM