Pandas: Can you rewrite this line to use df.loc?

I have been working through Reindert-Jan Ekker excellent Plurasight course Pandas Playbook: Manipulating Data and right at the end of Demo: Detecting and Inspecting Missing Values, part of Module 5 Cleaning data, he asks the following question: # Can you rewrite this line to use df.loc? df[‘MIN_TEMP_GROUND’].drop(every_6th_row).isnull().all() True This code checks that data for MIN_TEMP_GROUND […]

Viewing Pandas DataFrame in VS Code

In this post I will show you how to access the Data viewer which is a useful tool to review, sort and filter data within a Pandas DataFrame. Required VS Code Extension If you have not already done so, add the Python extension for Visual Studio Code from Microsoft. Code Sample In the code example […]

Django: Using an Oracle database

This post will show you how to configure a Django application to use an Oracle database. Demo overview The goal of the Django project is to store episode information for the crime fiction television series Columbo. What you will need To build this demo I used the following: VS Code 1.5.6 Django 3.2.3 Python 3.9.1 Oracle Database […]

DAKboard: Raspberry Pi cron tips

When setting up a Raspberry Pi to be used as a DAKboard you may want to ensure that some tasks happen on a regular basis. The cron job scheduler can be used to achieve this and in this post I will show you how you can schedule turning the display off and restarting the Raspberry […]