Skip to main content

5 posts tagged with "Python"

Guides, tutorials, and tips on Python programming for various applications and use cases.

View All Tags

Using Your Custom Context Manager in Python

· 3 min read
Sudip Parajuli
Full Stack Django Developer | Data Science | IoT and Robotics

Many of you have used with open() as something: on file opening and similar tasks. But have you ever questioned yourself whether you can write your own custom context manager in Python? Yes, you heard that right! A context manager allows us to perform some setup and cleanup actions within a context, ensuring the necessary cleanup is done once the execution of the code is finished.

How I Created a Unofficial Lenovo Energy Management Tool For Linux

· 2 min read
Sudip Parajuli
Full Stack Django Developer | Data Science | IoT and Robotics

If you have a Lenovo Ideapad gaming device, then you know the issues of switching to Linux. Sometimes the driver fails to work within the Linux environment, and the integrated and dedicated graphics card combination can be a nightmare when managing through Linux. You don’t have the tools to switch smoothly between them. Yeah, you may argue that we can change that through BIOS, and it’s alright. But the major issue is I miss the features of the Lenovo Energy Management tool so much that I decided to create one for myself, especially Conservation Mode (which stops the charging at 60% and helps improve battery health).

A Comprehensive Guide to Data Pre-Processing in Machine Learning

· 6 min read
Sudip Parajuli
Full Stack Django Developer | Data Science | IoT and Robotics

Introduction

Data pre-processing is essential to ensure that different algorithms can be effectively applied, stored, and retrieved for later use. The steps below will guide you through the process of data pre-processing.

Data Scraping, A complete Beginner Friendly Guide to Become Expert

· 6 min read
Sudip Parajuli
Full Stack Django Developer | Data Science | IoT and Robotics

Web scraping is a technique that allows us to extract data from websites. BeautifulSoup or bs4 is one of the most popular Python libraries that provides us with a way to scrape data from a website. In this blog, we will learn how to get started with BeautifulSoup4 and what are the next steps to follow.