InAaweg InterviewbyRahul SDo you know what is np.empty(notbs)?np.empty(notbs) is a NumPy function that creates an uninitialized array of a specified shape and data type. The notbs argument represents…Apr 27, 2023Apr 27, 2023
Rahul SPython: iter, enumerate, zipIteration involves looping over sequences of values, and Python provides several built-in methods to simplify this process. In this…Oct 9, 2023Oct 9, 2023
Rahul SPython: Exception HandlingPython provides a robust mechanism for handling errors, known as exception handling. In this article, we will explore the concept of…Oct 9, 20231Oct 9, 20231
Rahul SPython: remove() and pop()“pop” and “remove” have different meanings and behaviors depending on the programming language and data structure being used.Oct 6, 2023Oct 6, 2023
Rahul SPython: update() method of dictionaryIn Python, you can use the update() method to update a dictionary with key-value pairs from another dictionary or an iterable of key-value…Apr 16, 2023Apr 16, 2023
Rahul STail recusion and tail recursive eliminationTail recursion and tail call elimination are two related concepts in computer science that are often used together to optimize recursive…Apr 10, 2023Apr 10, 2023
Rahul SPython: Local, Nonlocal and Global variablesnolocal is used when we need to access a variable in a nested function.global makes a previously declared variable global.Sep 27, 2023Sep 27, 2023
Rahul SPython: GIL (Global Interpreter Lock)The Global Interpreter Lock is a mutex (short for mutual exclusion) that protects access to Python objects, preventing multiple threads…Sep 27, 2023Sep 27, 2023
Rahul SPython: Deep and Shallow CopyIn Python, the = (assignment) operation does not pass by reference. Instead, it binds a new name to the same object.Sep 25, 2023Sep 25, 2023
Rahul SPython: STRING cheatsheetThis article provides a comprehensive Python string manipulation cheatsheet, covering essential functions like substring checks…Sep 10, 2023Sep 10, 2023
Rahul SPython: apply() & map() VERSUS for loopsapply() and map() are more efficient than for loops when dealing with DataFrames in Pandas for several reasons:Sep 12, 2023Sep 12, 2023
Rahul SPython: Functions-map()The map()transform values in a Series or DataFrame based on a mapping or function. With it, we can apply custom transformations to our…Sep 13, 2023Sep 13, 2023
Rahul SPython: apply(), map(), and applymap() for Data Manipulationapply() works on both DataFrames and Series, allowing custom functions for transformation.Sep 21, 2023Sep 21, 2023
Rahul SPython: random library cheatsheetFrom basic random number generation to advanced techniques like Gaussian distribution, discover how Python random library adds controlled…Sep 10, 2023Sep 10, 2023
Rahul SPython: Break, Continue & PassThe break, continue, and pass keywords are used to control the flow of a program, especially within loops and conditional statements.Sep 8, 2023Sep 8, 2023
Rahul SPython: Sorting, Filtering, and Grouping in Pandas1. df[df[col] > 0.5] - Rows where 'col' is greater than 0.5Sep 8, 2023Sep 8, 2023
Rahul SPython: LISTS (methods & tips)append(x)Adds element x to the end of the list.Sep 9, 2023Sep 9, 2023