pysal

Python: error while I try to update pysal

本小妞迷上赌 提交于 2020-06-01 05:18:20
问题 I have pysal1.4.1 installed on Python3.7.3 trough pip . If I try to update it sudo pip install pysal --upgrade I get the following error ERROR: Command errored out with exit status 1: command: /usr/local/opt/python/bin/python3.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-install-fvdu1kcg/rtree/setup.py'"'"'; __file__='"'"'/private/tmp/pip-install-fvdu1kcg/rtree/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"'

Python: error while I try to update pysal

北城余情 提交于 2020-06-01 05:14:04
问题 I have pysal1.4.1 installed on Python3.7.3 trough pip . If I try to update it sudo pip install pysal --upgrade I get the following error ERROR: Command errored out with exit status 1: command: /usr/local/opt/python/bin/python3.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-install-fvdu1kcg/rtree/setup.py'"'"'; __file__='"'"'/private/tmp/pip-install-fvdu1kcg/rtree/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"'

format/round numerical legend label in GeoPandas

穿精又带淫゛_ 提交于 2019-12-11 10:07:26
问题 I'm looking for a way to format/round the numerical legend labels in those maps produced by .plot() function in GeoPandas. For example: gdf.plot(column='pop2010', scheme='QUANTILES', k=4) This gives me a legend with many decimal places: I want the legend label to be integers. 回答1: As I recently encountered the same issue, and a solution does not appear to be readily available on Stack Overflow or other sites, I thought I would post the approach I took in case it is useful. First, a basic plot