Category: python
-
Yes I can API!
I have a “real” assignment (for work as opposed to study) to do some data visualizations using maps. It’s been a journey of over a week to get to the place where I’m ready to start, and the journey has had some educational detours along the way that I thought I’d share. Naturally, because I’m…
-
Visualization seems to be a thing…?
Are people craving interesting ways to visualize data? When I tell people I’m studying data science it seems to be the first thing that springs to mind – so I’m getting good practice in that area! Next challenge: map visualizations…
-
Polar bar chart challenge
A big thanks to ujubee.com for challenging me to create a polar bar chart last week – I hadn’t done one of these before, but the matplotlib polar_bar_demo documentation was most excellent – and you can see from the test sample below that the results are very pretty! If you’re interested in a bit more…
-
My 1st Dashboard :)
15 buildings, 35 aspects per building, each weighted according to importance, and then condensed into 6 key categories, with colour coding depending on how the results tumble out. What helped me get the final result? Pandas to import data from spreadsheet extract only the data I need manipulate it so we end up with…
-
Snippets
Small things that drove me nuts – and how they were resolved… an ever-expanding list, no doubt 🙂 Issue Solution Source plt.savefig() saves an empty picture or a cut-off picture plt.savefig() should be placed BEFORE plt.show() to prevent this happening Stackoverflow solution Pandas prints pie chart labels and a legend which is redundant To lose…
-
Natural sorting
The joys of real world data… I received a file today with building floors: 1st, 2nd, 3rd, all the way to 22nd… Regular sorting quickly got me nowhere, with results that started 10th, 11th, 12th, 13th, 14th, 15th, 16th, 17th, 18th, 19th, 1st, 22nd, etc. This led to my discovery of the most marvellous natsort…
-
Matplotlib gallery
Matplotlib gallery – the possibilities seem near endless… A great starting point when trying to figure out how to get the result you imagine!
-
Matplotlib – really basic basics!
I had quite a few false starts with matplotlib this week before I got going… I should know better by now, but I still keep on thinking I can just go crashing in and extrapolate on what I know and it might work – time-WASTING behaviour! If I may offer some tips (which I trust…
-
Cheat sheet – Pandas, data manipulation
A few things I found I used over and over again the last few weeks – the basics… How it works – Pandas, data manipulation
-
Cheat sheet – Pandas, data selection
A quick cheat sheet on basic data selection functions – as an aid to memory until memory has become second nature 🙂 How it works – Pandas, data selection
