Middle
What is a DataFrame, do you know?
sobes.tech AI
Answer from AI
DataFrame is a data structure widely used in data analysis and processing, especially in Python libraries such as pandas. It represents a two-dimensional table with row and column labels, where you can store data of different types (numbers, strings, dates, etc.). DataFrame is convenient for filtering, grouping, aggregating, and transforming data.
Example of creating a DataFrame in pandas:
import pandas as pd
data = {'Name': ['Anna', 'Boris', 'Viktor'], 'Age': [25, 30, 22]}
df = pd.DataFrame(data)
print(df)
Output:
Name Age
0 Anna 25
1 Boris 30
2 Viktor 22