🐍 Data Analyst Interview Series — Part 28
We've covered Python fundamentals and NumPy. Now let's move to one of the most important Python libraries for Data Analysts:
Part 28 — Pandas Fundamentals
1️⃣ What is Pandas and why is it used in Data Analytics?
Pandas is a Python library used for data manipulation, cleaning, and analysis.
It provides powerful data structures like Series and DataFrames.
import pandas as pd
df = pd.DataFrame(data)
print(df)
A Series is a one-dimensional labeled data structure that can store values of different data types.
import pandas as pd
sales = pd.Series([1000, 2000, 3000])
print(sales)
dtype: int64
A Series is useful when working with a single column of data.
A DataFrame is a two-dimensional labeled data structure containing rows and columns.
It is similar to a table in Excel or a relational database.