Language Selection

English French German Italian Portuguese Spanish

Python Programming Leftovers

Filed under
Development
  • Reading and Writing CSV Files in Python with Pandas

    There are many ways of reading and writing CSV files in Python. There are a few different methods, for example, you can use Python's built in open() function to read the CSV (Comma Separated Values) files or you can use Python's dedicated csv module to read and write CSV files. Depending on your use-case, you can also use Python's Pandas library to read and write CSV files.

    In this article, you will see how to use Python's Pandas library to read and write CSV files. However, before that let's briefly see what a CSV file is.

  • Python: Dict Setdefault And Getdefault

    In this post, we will discuss dict’s setdefault and getdefault in Python.

    These are two handy programming idioms in Python.

  • SimPy: Simulating Real-World Processes With Python

    The real world is full of systems, like airports and highways, that frequently experience congestion and delay. When these systems are not optimized, their inefficiency can lead to countless unhappy customers and hours of wasted time. In this tutorial, you’ll learn how to use Python’s simpy framework to create virtual simulations that will help you solve problems like these.

  • Learn Python Sys Module Functions

    In this article, we will take a look at the Python Sys Module. There are variables and functions that are maintained by the interpreter and the sys module provides a way of interacting with them. These variables are available until the interpreter is alive. We will have a glance at some of the commonly used sys functions.

    To work with the sys module you have to first import the module.

More in Tux Machines

Write GIMP scripts to make image processing faster

Some time ago, I wanted to give a blackboard-style look to a typeset equation. I started playing around with the GNU Image Manipulation Program (GIMP) and was satisfied with the result. The problem was that I had to perform several actions on the image, I wanted to use this style again, and I did not want to repeat the steps for all the images. Besides, I was sure that I would forget them in no time. GIMP is a great open source image editor. Although I have been using it for years, I had never investigated its batch-processing abilities nor its Script-Fu menu. This was the perfect chance to explore them. Read more

Use your Raspberry Pi as a productivity powerhouse

In prior years, this annual series covered individual apps. This year, we are looking at all-in-one solutions in addition to strategies to help in 2021. Welcome to day 16 of 21 Days of Productivity in 2021. The Raspberry Pi is a pretty amazing little computer—small, surprisingly powerful, and very easy to set up and use. I have used them for home automation projects, dashboards, and a dedicated media player. But can it be a productivity powerhouse as well? The answer is, quite simply, yes. Read more

Mozilla Firefox 85.0 Now Available As First 2021 Release

Mozilla Firefox 85.0 is available today as the open-source web browser's first major release of the year. For those more interested in Firefox now following the recent news of Google cutting off Chromium API access to various Google services in trying to steer more users to Chrome proper, Firefox 85.0 has arrived just in time. Firefox 85.0 is available this morning via the Mozilla FTP ahead of the official announcement. Firefox 85.0 comes with privacy enhancements like network partitioning, the password manager can now more easily remove all saved logins, and the Adobe Flash support is removed in full. Read more

Should Ubuntu Adopt KDE Plasma as Default Desktop? [Opinion and Analysis]

With the recent GNOME 40 design change and Ubuntu decides to follow the “wait-and-watch” principle for its adaptation, we analyze whether Ubuntu should adopt KDE Plasma as its Default Desktop, saying goodbye to GNOME. Read more