Category : jupyter

I want to compare float values from two different columns. df1 = pd.DataFrame({ "value1": [6.13, 4.59] }) df2 = pd.DataFrame({ "value2": [6.13, 4.59, 5.17, 3.82, 9.32] }) df = pd.MultiIndex.from_product( [df1["value1"], df2["value2"]], names=["col1", "col2"] ).to_frame(index=False) What algorithm can I use? Please demonstrate. Source: Python..

Read more

Please help me troubleshoot why I am not able to import: from folium.plugins import TimeSliderChoropleth I can’t find a clear solution online. I am running Python 3.7.3 and folium 0.2.1. I get this Error: ImportError: cannot import name ‘TimeSliderChoropleth’ from ‘folium.plugins’ (C:Users6111Anaconda3envsmyenvlibsite-packagesfoliumplugins_init_.py) Source: Python..

Read more

I am following guides here: https://jupyter-notebook.readthedocs.io/en/stable/public_server.html to generate a hashed password to copy into a jupyter_notebook_config.py. However, whenever I try to login to the actual Jupyter notebook, the password is not working. This is the code I am using: from notebook.auth import passwd passwd() What I get in return is a hash that looks something ..

Read more

I am trying to connect to IBM DB2 on Jupyter notebook like attached images but I faced issue [IBM][CLI Driver] SQL10013N The specified library "GSKit Error: 207" could not be loaded. SQLSTATE=42724 SQLCODE=-10013 I already install ibm-db by pip and import it. More information about my device: macOS big sur 11.2.3 jupyter 1.0.0 jupyter-client 6.1.12 ..

Read more

I’m trying to follow along with the following YouTube tutorial: https://www.youtube.com/watch?v=D35m2CdMhVs I set up the environment through Anaconda and am using Jupyter to code. I imported pandas and plotly for the code and yet the iplot function is not recognized. The import statements in the code look like this: import plotly import plotly.figure_factory as ff ..

Read more