Skip to content

Inset Maps in Plotly (Python)

I am currently trying to plot a few maps by using Plotly Express and Mapbox in Python. I need to have a big map with the country and, next to it, an inset map with a “zoom” to a particular region (see Image attached as an example) INSET MAP EXAMPLE. I managed to plot the bigger map (i.e. the whole

My Python Caeser Cipher program stops shifting after 30

I created a function to split inputed string into list of words and then replace the letters in each word with its shifted counterpart but when I set the shift to over 30 it prints unchanged. Answer One useful trick here is to use the modulus operator (%). It will take care of the shift for you. Here is how

How to save Farsi text in csv file using python?

I was trying to save my dataset in a CSV file with the following script: but the result is confusing, write some unknown chars to CSV file instead of Farsi chars: Can anyone help me? I want to write all these files in a CSV: example of what I have in one of them and want to write: but result: