Pandas is a powerful Python library that provides high-performance, easy-to-use data structures and data analysis tools. It is one of the most popular libraries for data analysis and manipulation in Python.
Key Features
- DataFrames: A two-dimensional table with labeled axes (rows and columns).
- Time Series: Easy handling of time series data.
- Data Loading: Ability to read data from various file formats such as CSV, Excel, SQL, and more.
- Data Manipulation: Functions to manipulate and transform data.
Getting Started
To install Pandas, you can use pip:
pip install pandas
Example Usage
Here's a simple example of how to create a DataFrame and perform some basic operations:
import pandas as pd
# Create a DataFrame
data = {'Name': ['Tom', 'Nick', 'John', 'Alice'],
'Age': [20, 21, 19, 18],
'City': ['New York', 'London', 'Paris', 'Berlin']}
df = pd.DataFrame(data)
# Display the DataFrame
print(df)
This will output:
Name Age City
0 Tom 20 New York
1 Nick 21 London
2 John 19 Paris
3 Alice 18 Berlin
Further Reading
For more information and examples, you can refer to the official Pandas documentation.
Pandas DataFrame