22 May 2023 Luke Hande How to Convert JSON to CSV in Python Converting from JSON to CSV in Python? We’ll show you how to do it quickly and easily! Depending on what project you happen to be working on, your data can come in multiple formats. So, it’s important to be comfortable handling data in a variety of formats. JSON and CSV are two very popular formats. In this article, we’ll show you how to convert the JSON format into CSV in Python. Read more 24 Apr 2023 Luke Hande Python Timer: How to Measure Execution Times of Python Scripts Program timing can give you a lot of valuable information. Let’s talk about the best ways to measure execution times in Python. In this article, we’ll show you how to measure the execution time of Python programs. We’ll introduce you to some tools and show you helpful examples to demonstrate how to measure the time of a whole program, a single function, or just a simple statement. At the end, you’ll be better able to understand how your code is working by timing it accurately. Read more 27 Mar 2023 Luke Hande cURL, Python requests, and How to Download Stuff From the Internet This article is for all those data analysts out there. If you’ve been looking for a better way to download data from the Internet, check out what Python requests and cURL can do. One of the first steps in any data analytics project is getting your hands on a dataset. It could be anything – measurements of physical phenomenon, results from a simulation, images, text, even music. In fact, we have an article on How to Visualize Sound in Python to provide some inspiration. Read more 30 Jan 2023 Luke Hande What 'inconsistent use of tabs and spaces in indentation' Means in Python and How to Fix It Learn why indentation in Python is so important and how you can fix any mistakes. Indenting blocks of code is an important part of programming; it serves several purposes. First and foremost, it improves readability. Imagine removing all the formatting from a recipe leaving only the spaces between the list of ingredients and instructions. This would be hard for the cook to follow. In Python, indentation also controls how your code behaves. Read more 16 Jan 2023 Luke Hande What’s the Difference Between a Python Module and a Python Package? One of Python’s many advantages is its packages – or are they Python modules? Discover the difference between Python packages and Python modules and learn why both are important in this article. Python is an open-source language, meaning its existing and new developments are freely available to everyone. Anyone can write some code and then make it available for others to download, install, and use. You might find these programs referred to as Python modules or Python packages. Read more 28 Dec 2022 Luke Hande What Is the Python Interpreter? Without an interpreter, your Python code is just words on a screen. Find out what a Python interpreter is, what it does, and what your code looks like ‘under the hood’. At the most fundamental level, computer programs are simply sets of instructions. To do some basic arithmetic and save the output we need something like the following instructions: ‘load the number 8’, then ‘load the number 9’, then ‘add the first number to the second and store it somewhere’. Read more 20 Dec 2022 Luke Hande Best Python Packages for Excel At some point, you’ll probably need to work with data from an Excel spreadsheet. How can you work with Excel data and files in Python? We review some of the best Python packages for Excel in this article. An Excel spreadsheet is a very common way of storing tabular data. But Excel is not without its problems, as we discussed in the article Excel Alternative: What to Learn as a Data Analyst. Read more 21 Nov 2022 Luke Hande How to Run a Python Script in Windows If you want to learn Python, you’ll need to know how to run Python scripts or .py files in Windows. Find out what you need to do in this article! When it comes to operating systems, there are three main ones for personal computers: Microsoft Windows, Apple’s macOS, and Linux. You can use any of these operating systems to develop and run your Python programs. However, there are subtle differences you need to keep in mind while developing your projects. Read more 24 Oct 2022 Luke Hande The enumerate() Function in Python What is the enumerate() function in Python and when do you need it? Find out in this article. While iterating through a list in Python, you’ll often need to keep track of the list elements’ indexes. The enumerate() function provides a useful way to do this. In this article, we’ll show you how to use this function to take your loops to the next level. This article is aimed at people without much Python programming experience. Read more 19 Oct 2022 Luke Hande Top Python Libraries for SQL Did you know that Python and SQL can work together? Find out all about Python’s SQL libraries in this article. Along with Python, SQL is a very common and useful tool for working with data. SQL stands for Structured Query Language; it’s a language used to manage data in a relational database. Although SQL is a different language to Python and has its own syntax, Python has libraries which can be used to connect to a database and write SQL queries to retrieve data – all from within your Python script. Read more «« « 1 2 3 » »»