Pandas and DataFrame | Program 2 III Bsc Computer Science| M.S University | Web Academy

Опубликовано: 06 Август 2026
на канале: Web Academy
88
2

Pandas DataFrame is two-dimensional size-mutable, potentially heterogeneous tabular data structure with labeled axes (rows and columns). A Data frame is a two-dimensional data structure, i.e., data is aligned in a tabular fashion in rows and columns. Pandas DataFrame consists of three principal components, the data, rows, and columns.
Pandas is a Python library used for working with data sets.
Pandas is used to analyze data.

Program
import pandas as pd
import pandas as pd
list of strings
lst = ['Hello', 'World', 'Python', 'is', 'powerful', 'for', 'Data Science']
Calling DataFrame constructor on list
df = pd.DataFrame(lst)
print(df)