I am using Python in Jupyter Notebook. My Pandas version is
pandas: 0.23.4 in which I cannot use Explode or other advanced functions. I am trying to upgrade it using the codes like:
!pip install -- upgrade pandas But keep receiving error messages like:
Could not fetch URL https://pypi.org/simple/ipython/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/ipython/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1045)'))) - skipping
Does anyone know how to rewrite the codes?
!pip install --upgrade pandasto only upgrade pandas?!{sys.executable} -m pip install ...!pip install .... In the last couple of years a magic command was added that you should use when usingpipin a notebook.%pip install ...will handle dealing with the environment backing your notebook, whereas the use of the exclamation point won't. A similar magic command was added forconda. See here for more information.!pip install -- upgrade pandasisn't the same as!pip install --upgrade pandasright? In the first one you're trying to installupgradeandpandas, in the second you're upgradingpandas...