Previous Articles

  • Adventures in C - If you’re more familiar with Python you’ll need to tackle pointers… Let’s look at an example : The first thing you may notice is that there is no need for a “return” from the function…. Example 1 – Pointers Example 2 – Pointer that updates conditionally, based on values read from an array Example 3 […]
  • Python API – POST Requests - Many API endpoints require use of the POST method. Here we look at how you can use Python and Requests to work with an API. Example code and a real world example connecting to the EBAY API. Endpoint – The URL that delineates what data you are interacting with. Method – Specifies how you’re interacting […]
  • JavaScript tips - A collection of useful JavaScript functions and handy tips / study notes forEach Map Filter Invoking a class Clickable div – linked to a js function Use JavaScript to fetch data API – JS – HTML Demo We use JavaScript to fetch from an API and create a new element in the html for each […]
  • Callback functions - Javascript callback functions explained. As well as Python we’ll be adding semi regular tips and case studies of JavaScript code and features. In this article we’ll look at “callback” functions in JavaScript. Let’s simplify them down to a very basic example which we show here: The above will print to console. We have a function […]
  • Creating a Python Package - Make your own python package and make it installable with pip install. If you are wanting to create your own Python module for others to use and provide the best way to install it then https://pypi.org/ is the way to go. See also https://pythonhosted.org/an_example_pypi_project/setuptools.html
  • Google Image Search - And How To Use Python to automate it! code: If you see “Error 429 when requesting…” or… RESOURCE_EXHAUSTED then you may have exceeded your daily allowance for API calls. So be careful when testing the code not to make too many requests. To install our code you can use pip: pip install gimdl https://pypi.org/project/gimdl/
  • GitHub Support for password authentication - Support for password authentication was removed on August 13, 2021. Please use a personal access token instead. This article shows you how to fix it! remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information. 2 Steps to fix Enable 2 […]
  • Remove non printable characters from text -
  • map & lambda - Introduction Using lambda can save you having to write a function. If you’ve not used ‘map’ then we’ll show you how it can perform the same task as lambda in an example import pandas as pdpd.set_option('max_rows',10)import numpy as npreviews = pd.read_csv("winemag-data-130k-v2.csv",index_col=0)reviews next we’ll drop any rows full of NaNs reviews.dropna() now we have good data… […]
  • Data Analysis With Pandas - If you want to learn about Data Analysis with Pandas and Python and you’re not familiar with Kaggle, check it out! Time to read article : 5 mins TLDR; We show how to use idxmax and apply with Pandas Introduction Here we will look at some functions in Pandas which will help with ‘EDA’ – […]