Skip to content

How to store column value from mysql to python variable?

actually i’m new to learning python and mysql database i have table named TABEL_NILAI in database like this: So i want to Retrieve value NILAI_TRUST from TABEL_NILAI and i want to do some math. here’s code i was made: And giving me error like: so how to retrieve value into python variable in right…

How can I run selected lines in Spyder 4?

In previous versions of Spyder, you can select lines in the editor, and only run those selected lines. In Spyder 4, when you select lines and press Ctrl+Enter it executes runcell(0, ‘/your/dir/file.py’) which runs the whole code. How can I run just the lines which I have selected? Answer The hotke…

Plotting spatial data on individual map using altair

I want to plot spatial data on a map. I want to use streamlit because it seems to be easy to use and I want to explore it a bit. First a tried plotting my data with their inbuilt deck_gl-API. This worked pretty good, but since I need to plot glyphs/icons and the IconLayer isn’t built into streamlit yet,…