Django: object has no attribute ‘save’

When using model forms you can save values entered into a form by calling the form’s save() method as shown below. If you are not using model forms an attempt to call form.save() results in an error such as: The save() method works with model forms because there is a model associated with it so […]

Raspberry Pi: Open Current Folder in Terminal shortcut not working

On several occasions the useful feature of opening the current folder in a terminal session from File Manager by pressing F4 had stopped working. This problem can appear either by displaying an error similar to the screen shot above or no error is displayed and nothing happens, the terminal session does not start. The resolution […]

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 […]