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…
Author: Abhay Kagalkar
Run Databricks Notebooks In Parallel -Python
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…
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…
8051 16 bit multiplication Program- Codes Explorer
8051 16 Bit Multiplication ALP ALGORITHM: Start. Load the MSB’s of Data in two different registers. Load the LSB’s of Data in other two different registers. Successive multiplication is carried out. The product obtained in the registers. The output is stored in the registers. End. For example if we are…
C++ Program to Swap two numbers.
“Swapping of integers is defined as the variables that are interchanged after swapping the variables,called as Swapping of integers” Example: If the input is given as a=5 and b=4 (before Swapping) The output will be as a=4 and b=5 (after Swapping). Input: a=20 and b=40, before swapping. Output:…
8051 Program to find 10 fibonacci numbers and store it an array.
Program to find 10 fibonacci numbers and store it an array. In this article let’s learn how to find fibonacci numbers and store it in an array. Basically fibonacci number is a series where each term is the sum of previous two numbers. Algorithm: 1)Store the memmory address in R0…
8051 Assembly code to find average of all numbers stored in array
We use Indirect addressing mode to access arrays in 8051, because it is efficient and has advantage of accessing adjacent address locations with one base address. So, lets see how to find average of all numbers stored in an array. ALGORITHM: Start Initialize a register with base address of memory…
You must be logged in to post a comment.