Byte
Python, somewhat similar ot Node, uses a system of installed modules/packages. But as you continue to install more and more modules, it might get a bit tricky to keep track of all of them. In this Byte, we'll explore how to get a list of all locally installed Python...
Scott Robinson
Article
Python is not necessarily known for its speed, but there are certain things that can help you squeeze out a bit more performance from your code. Surprisingly, one of these practices is running code in a function rather than in the global scope. In this article, we'll see why Python...
Handling string data is a task that most software has to do in some capacity. These strings aren't always properly formatted, like those that may have a trailing newline that doesn't actually add any value to the sring and could be removed. This Byte will introduce you to the basics...
Integers are one of the fundamental data types that you'll encounter. They're used in just about every application and understanding their limits can be crucial for avoiding errors or even optimizing your code. In this Byte, we'll peak into the world of integers, exploring how to find their maximum and...
In this Byte, we'll be looking into Python's argparse module and how we can use it to parse boolean values from the command line. This is often used when you're writing a command line tool or even a more complex application. Understanding argparse and its functionalities can make your life...
While learning Python or reading someone else's code, you may have encountered the 'u' and 'r' prefixes and raw string literals. But what do these terms mean? How do they affect our Python code? In this article, we will attemp to demystify these concepts and understand their usage in Python....
At some point when writing Python code, you may have come across a line at the top of some scripts that looks something like this: #!/usr/bin/env python3. This line, known as a shebang, is more than just a quirky looking comment. It actually an important role in how...
In this Byte we're going to talk about how to import multiple CSV files into Pandas and concatenate them into a single DataFrame. This is a common scenario in data analysis where you need to combine data from different sources into a single data structure for analysis. Pandas and CSVs...
When writing code, you may need to determine how much memory a particular object is consuming. There are a number of reasons you may need to know this, with the most obvious reason being storage capacity constraints. This Byte will show you how to determine the size of an object...
© 2013-2025 Stack Abuse. All rights reserved.