Author: user
Unix : Shell script that backs up a specific directory to a destination directory
Example of a shell script that backs up a specific directory to a destination directory, creating a new backup directory…
Shell : Optimizes PNG images in a directory using optipng
Example of a shell script that scans a given directory, finds any PNG images, and optimizes them using a tool…
Shell : Bash shell script that will recursively traverse and replace the file or extension
Here’s a simple Bash shell script that will recursively traverse through the directory it’s run in and rename all .jpg…
Python : Generate Random 500 number between 101, 999 and exclude prime numbers from it
Here’s a Python code snippet that generates a list of 500 random numbers between 11 and 99: import random random_numbers…
PySpark : Understanding the PySpark next_day Function
Time series data often involves handling and manipulating dates. Apache Spark, through its PySpark interface, provides an arsenal of date-time…
Python : The Vital Role of Data Visualization and Top Python Libraries for Effective Visualization
Data visualization plays a pivotal role in the era of big data, enabling businesses to understand complex datasets and extract…
PySpark : Extracting the Month from a Date in PySpark
Working with dates Working with dates and time is a common task in data analysis. Apache Spark provides a variety…
PySpark : Calculating the Difference Between Dates with PySpark: The months_between Function
When working with time series data, it is often necessary to calculate the time difference between two dates. Apache Spark…
PySpark : Retrieving Unique Elements from two arrays in PySpark
Let’s start by creating a DataFrame named freshers_in. We’ll make it contain two array columns named ‘array1’ and ‘array2’, filled…
GIT : The runner has not yet connected yet [ Solved ]
In GitLab, the process of setting up a new runner and connecting it to a project involves several steps. Here…