…and where to get example code

Most articles are about Data Visualization and Data Science in Python (and a few in, Julia). Occasionally I stray into other areas of science and technology. Most articles have downloadable code and some have demonstrator web sites.

Data Visualization and Data Science


Matplotlib, Pandas, Seaborn, Plotnine and MplFinance all have their strengths — let’s get a feel for each of them

Example charts — image by author

Visualization is key to data communication. Whether you are trying to get something across to your boss, your client or your peers, a well-constructed chart or graph can often make your point more clearly than a table of numbers.


Goodbye XMLHttpRequest, hello fetch, asynch and await

Demo app — image by author, data by the BBC, used with permission

AJAX is a set of techniques to update the data on a web page without refreshing the whole page by requesting data from a server in the background.


Financial Data Visualization

The yfinance library for Python gives you access to Yahoo Finance data while Plotly and Flask let you build a stunning dashboard

The demo site — image by author

Plotly and Flask are a great combination. The Plotly people obviously think so, because they have created Dash which is a combination of the two apps into a single product.


It’s much more powerful than 'switch’. I explain with help from Harry Potter and a dead parrot

Photo by Ashkan Forouzani on Unsplash

Python has, at long last, got itself a switch statement. Hooray!


The Switch statement on steroids

Photo by Teo Duldulao on Unsplash

Python 3.10 has implemented the switch statement — sort of. The switch statement in other languages such as C or Java does a simple value match on a variable and executes code depending on that value.

It can be used as a simple switch statement but is capable of much more.

That might be good enough for C but this is Python, and Python 3.10 implements a much more powerful and flexible construct called Structural Pattern Matching. It can be used as a simple switch statement but is capable of much more.


Python $59k, JavaScript $56k*. Which programming language should you learn if you want to start a career in software development

Photo by Michael Dziedzic on Unsplash

You could choose a language by going to the Stackoverflow survey website, find the highest paid language and learn that.


Using the TextBlob and VADER libraries for Sentiment Analysis is easy but how accurate are they

Photo by Tengyart on Unsplash

Sentiment Analysis is not an exact science. Natuaral language is full of strange expressions, words that mean more than one thing, idioms, sarcasm and any number of things that make the extraction of meaning difficult. Look at the these two sentences.


Would you like to distribute or sell your articles and documents electronically? Engage your fans and readers by giving them access to downloads that they can enjoy reading on their own devices?

Photo by Maarten van den Heuvel on Unsplash

If you want to publish a novel or a textbook, you can do this through commercial outlets like Amazon’s KDP, Barnes and Noble Press or Rakuten Kobo. But this is not really an appropriate route for smaller documents or articles.


Data visualization

To create a truly interactive app with Dash you need to use callbacks. You can achieve the same thing with Plotly and Flask.

The app and code — image by autho

It may seem as if I have something against Dash. Honestly, I haven’t; it’s a fine product, comes with a lot of support from Plotly and does what it is intended to do, well.

Alan Jones

Technology, data science and programming. LinkedIn: https://www.linkedin.com/in/alan-jones-032699100

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store