Category Archives: python

Python Convert KML to GeoJSON

GeoJSON and KML are formats for storing spatial information. KML files are commonly found with Google Earth type applications, so it can be useful to convert KML to GeoJSON.  The python library kml2geojson can be used to convert KML to GeoJSON. kml2geojson works as either a tool from the command line, or can be used… Read More »

Python Text To Speech

Text to speech is a tool available in most operating systems, and helps people with reading and sight difficulties, or can be used as part of a ‘Jarvis‘ helper on your computer. Python has a few options for dealing with text to speech, generally in the form of wrappers for speech engines. This post goes… Read More »

Learn About Simple Python Logging

Logging can offer much more flexibility than simply printing a message to the console but it can be difficult to know where to start. This post looks a some examples of simple python logging to get you started. Why ‘log’ instead of ‘print’? Printing to the console is usually one of the first things you… Read More »

Sort Pandas Boxplots

Make pandas boxplots more readable by sorting. Plotting with pandas dataframes usually works well, and makes it easy explore and visualise data. With simple pandas code like this: you can easily make charts like this from your dataframes: Sort Pandas Boxplots The default pandas boxplot easy easy to use, but it can be more clear… Read More »