Machine Learning

error cuda kernal image

Fixed runtimeerror: cuda error: no kernel image is available for execution on the device

Summary The blog has been written by a machine learning practitioner. He has practical experience in solving CUDA and GPU issues of compatibility in production environments using PyTorch and TensorFlow. The solution shared here is based on troubleshooting of NVIDIA GPUs across multiple CUDA versions, driver configurations, and compute architectures The reason for getting RuntimeError: […]

Fixed runtimeerror: cuda error: no kernel image is available for execution on the device Read More »

Pandas series valueerror

Understanding the ValueError: can only compare identically-labeled series objects in Pandas

The error “ValueError: can only compare identically-labeled series objects” comes in Pandas and specifically when we are dealing with series. This error is quite frustrating when we are new to pandas and performing data analysis. Understanding ValueError: can only compare identically-labeled series objects with code examples. We get “ValueError: Can only compare identically-labeled Series objects”

Understanding the ValueError: can only compare identically-labeled series objects in Pandas Read More »

notimplementederror loading a dataset

Solving notimplementederror: loading a dataset cached in a localfilesystem is not supported.

The Hugging Face ‘datasets’ library has changed the way data scientists and machine learning developers access and manage datasets. One of the common issues that users face is the `NotImplementedError: loading a dataset cached in a LocalFileSystem is not supported`. This kind of error can really be frustrating when we are in the middle of

Solving notimplementederror: loading a dataset cached in a localfilesystem is not supported. Read More »

fatal_error_python_image

Solving Fatal Python Error: init_import_size: Failed to Import the Site Module Error

Python is used in various fields from web development to data science. As it is also technology, Python can sometimes encounter errors that can be frustrating for developers. One of these errors is the Fatal Error: init_import_size: Failed to import the site module.” In this blog post, we will explore what causes this error and

Solving Fatal Python Error: init_import_size: Failed to Import the Site Module Error Read More »

Drop rows with nan

Drop rows with NaN : Pandas

Missing data is a common problem in data science domain. When we are collecting raw data from the environment we get lot of missing values. In Pandas missing values are typically represented as nan (Not a Number). Dropping rows with nan values helps us to maintain the integrity of our analysis by ensuring that only

Drop rows with NaN : Pandas Read More »

pandas dataframe append method image

Pandas dataframe append deprecated use pd.concat now.

Understanding pandas dataframe append deprecated. Recent deprecation of ‘DataFrame.append’ method in Pandas has created a discussion point amongst data scientists and developers. As we move to Pandas 2.0, this method is no longer recommend to be used which leads developers to use ‘pandas.concat’ for appending data. By using ‘pandas.concat’ we enhance performance in data manipulation

Pandas dataframe append deprecated use pd.concat now. Read More »

Get text between two strings

Python: Get text between two strings, characters, or delimiters

Author: JKPython Developer | 5+ years programming production systems“I write about real Python problems I’ve encountered in projects and how to fix them.” Summary: The writeup shows real world techniques for extracting text between strings, characters, words and delimiters in Python. These are common requirements of data cleaning, data wrangling and text preprocessing tasks. In

Python: Get text between two strings, characters, or delimiters Read More »