Skip to content

Tag: dictionary

How to drop pairs in dict

I want to drop value pairs in a dictionary if the first element contains a certain string (time or session), but keep the remaining pairs (word and group). dic1 is the one I have and dic2 is the one I would like. I have written a one liner that removes the entire value element but thats not really what I

Map of a country with plotly

The aim of create a map of a country with plotly. I show you the code to make the map with dots from cities and I want to change it to regions: In the scope we have by default: “world” | “usa” | “europe” | “asia” | “africa” | “north america&#82…