Junior — Middle
Have you used the Pandas library for data processing?
sobes.tech AI
Answer from AI
Yes, the Pandas library is widely used for data processing and analysis in Python. It provides convenient data structures — DataFrame and Series — which make it easy to load, filter, aggregate, and transform data.
For example, with Pandas, you can load a CSV file, filter rows based on a condition, and calculate the average value:
import pandas as pd
df = pd.read_csv('data.csv')
filtered = df[df['age'] > 30]
average_salary = filtered['salary'].mean()
print(average_salary)
Pandas also supports working with time series, merging tables, grouping, and much more, making it an indispensable tool for data analysis.