Author: user

CoffeeScript @ Freshers.in Training

Fat Arrow (=>) in CoffeeScript: Purpose and usage

This article delves into the purpose of the “fat arrow” in CoffeeScript, complemented by examples to illustrate its functionality. The “fat…

Continue Reading Fat Arrow (=>) in CoffeeScript: Purpose and usage
CoffeeScript @ Freshers.in Training

Mastering CoffeeScript: Understanding the basics and commenting techniques

CoffeeScript, a programming language that transcompiles into JavaScript, offers a more succinct and readable syntax compared to its counterpart. This…

Continue Reading Mastering CoffeeScript: Understanding the basics and commenting techniques
CoffeeScript @ Freshers.in Training

Understanding CoffeeScript: A modern twist on JavaScript

CoffeeScript vs JavaScript Introduction In the ever-evolving world of web development, CoffeeScript emerged as a language that aimed to simplify…

Continue Reading Understanding CoffeeScript: A modern twist on JavaScript
PySpark @ Freshers.in

Replacing NaN (Not a Number) values with a specified value in a column : nanvl

The nanvl function in PySpark is used to replace NaN (Not a Number) values with a specified value in a…

Continue Reading Replacing NaN (Not a Number) values with a specified value in a column : nanvl
PySpark @ Freshers.in

Computing the average value of a numeric column in PySpark

The mean function in PySpark is used to compute the average value of a numeric column. This function is part…

Continue Reading Computing the average value of a numeric column in PySpark
PySpark @ Freshers.in

Concatenating two or more maps into a single map : map_concat

The map_concat function in PySpark is designed to concatenate two or more maps into a single map. It merges key-value…

Continue Reading Concatenating two or more maps into a single map : map_concat
PySpark @ Freshers.in

Removing leading spaces (spaces on the left side) from a string in PySpark

PySpark, a leading tool in big data processing, provides several functions for string manipulation, one of which is ltrim. This…

Continue Reading Removing leading spaces (spaces on the left side) from a string in PySpark
PySpark @ Freshers.in

Adding a new column to a DataFrame with a constant value

The lit function in PySpark is a straightforward yet powerful tool for adding constant values as new columns in a…

Continue Reading Adding a new column to a DataFrame with a constant value
PySpark @ Freshers.in

Finding the position of a substring within a string using PySpark

pyspark.sql.functions.locate PySpark, a tool for handling large-scale data processing, offers a plethora of functions for string manipulation, one of which…

Continue Reading Finding the position of a substring within a string using PySpark