In this post, we will see the list of questions asked in Tech Mahindra Company Interview for Data Engineering profile.
PySpark | How to Rename Column in a Dataframe?
Renaming columns in a PySpark DataFrame is a common task when you’re cleaning, transforming, or organizing data. Whether you’re working with external datasets or need to make your DataFrame more readable, PySpark offers multiple ways to rename columns. In this article, we’ll cover three popular methods to rename columns in PySpark:
1) withColumnRenamed()
2) selectExpr()
3) select() with col()
PySpark | How to Add a New Column in a Dataframe?
In PySpark, adding a new column to a DataFrame is a common and essential operation, often used for transforming data, performing calculations, or enriching the dataset. PySpark offers 3 main methods for this: withColumn(),select() and selectExpr(). These methods allow you to create new columns, but they serve different purposes and are used in different contexts.
This article will guide you through adding new columns using both methods, explaining their use cases and providing examples.
PySpark | How to Create a Dataframe?
In PySpark, a DataFrame is a distributed collection of data organized into named columns, similar to a table in a relational database or an Excel spreadsheet. DataFrames provide a powerful abstraction for working with structured data, offering ease of use, high-level transformations, and optimization features like catalyst and Tungsten. This article will cover how to […]
PySpark | How to Create a RDD?
Resilient Distributed Datasets (RDDs) are the core abstraction in PySpark, offering fault-tolerant, distributed data structures that can be operated on in parallel. Although the DataFrame API is more popular due to its higher-level abstractions, RDDs are still fundamental for certain low-level operations and are the building blocks of PySpark.
In this article, you’ll learn how to create RDDs in PySpark, the different ways to create them, and when you should use RDDs over DataFrames.
TCS | Data Engineer Interview Questions – Set 1
In this article, we will see the list of questions asked in TCS Company Interview for Data Engineers. Let’s see the Questions:
Accenture | Azure Data Engineer Interview Questions – Set 1
In this article, we will see the list of questions asked in Accenture Company Interview for Azure Data Engineers.
Let’s see the Questions:
PySpark | How to Create a Spark Session?
Creating a Spark session is the first step when working with PySpark, as it allows you to interact with Spark’s core functionality. This article will walk you through the process of creating a Spark session in PySpark.
PySpark | How to setup PySpark on a Windows Machine?
In this post, we will extend that setup to include PySpark, allowing you to work with Spark using Python. Let’s dive into the steps to get PySpark running on your Windows machine!
Spark | How to setup Apache Spark on a Windows Machine?
Setting up Apache Spark on a Windows machine can be a straightforward process if you follow the right steps. This guide will walk you through installing Java, configuring environment variables, downloading and setting up Spark, and finally running Spark on your Windows system. Let’s get started!