Databricks is an industry-leading, cloud-based data engineering tool used for processing and transforming massive quantities of data and exploring the data through machine learning models. You can use dbutils library of databricks to run one notebook and also run multiple notebooks in parallel. Run one Notebook from another Notebook You can use the…
Computing the total storage size of the ADLS Gen1 or Gen2 folder in Pyspark
This post explains how to calculate the total storage size of an Azure Data Lake Store(ADLS) Gen1 or Gen2 folder in Pyspark using Azure Databricks or Azure Synapse Analytics. Assumptions ADLS Gen1 or Gen2 is already set and is being mounted in Azure Databricks or Azure Synapse Analytics. The below…
Rotate array in the right direction by K steps
Brief Description: Given an array A, we have to rotate the array in the right direction by K steps. Let’s begin with an example. A = [1,2,3,4,5,6,7,8,9,10] and K = 3, then if we rotate the array in the right direction by K times, the resultant array would look like…
C++ program to demonstrate simple inheritance
This program will demonstrate the simple inheritance in C++. Inheritance is the capability of a class to derive properties and characteristics from another class. Inheritance is an important concept in OOPS. More about inheritance its modes and types can be found here https://www.geeksforgeeks.org/inheritance-in-c/ . In the below code we will…
Introduction to Python Programming
Python is a general-purpose interpreted, interactive, object-oriented, and high-level programming language created by Guido van Rossum. It is ideally designed for rapid prototyping of complex applications. It has interfaces to many OS system calls and libraries and is extensible to C or C++. Many large companies use the Python programming…
Python: List all Files in Directory and Find a string in file name
In this article, you’ll learn about creating a directory, renaming it, list all files in a directory and find if a string is there is in file name. What is Directory? A directory or folder is a collection of files and sub-directories. Python has the os module, which provides a…
Gradient Descent – Machine Learning
Introduction: Gradient Descent is the most used algorithm in Machine Learning. In this article, you will learn how to implement the Gradient Descent algorithm in python. Gradient Descent is a method of minimizing the cost function by an iterative method. In this method, we assume initial weights(theta) and go on…
RTOS Task switching based on priority using LCD – CodesExplorer
Prerequisites:- The prerequisite for this program you should have knowledge of Simple LCD interfacing on ARM LPC2148. You can visit this post to get the program, algorithm about LCD interfacing. Introduction:- In this post, We will be dealing with RTOS(Real-time Operating System) Program to switch the tasks based on the priorities.At…
RTOS program to generate Round Bin Multitasking algorithm
In this article let’s learn to assign tasks in round robin fashion. In the following program first, it assigns the highest priority to task1 and then it creates task2,task3. It continued the execution and waits for an event in task1, then suspends task1 and then enters into task2. Next, it…
Classes and Objects
Classes and Objects Classes and Objects: Class is a user defined data type just like Structures, but with the difference. It also has 3 sections namely 1. private, 2. public and 3. protected. Using these, access to member variable of a class can be strictly controlled. public : variable and…
You must be logged in to post a comment.