AGENT SKILL

data-analysis

Using Python and Pandas to analyze large CSV datasets and filter based on specific criteria like budget, location, and amenities.

License 许可
MIT
最近更新
2026-10-02
Stars
★ 93
Forks
8

01 前言 Front Matter

name
data-analysis
description
Using Python and Pandas to analyze large CSV datasets and filter based on specific criteria like budget, location, and amenities.

03 SKILL.md 正文

Data Analysis using Pandas

This skill covers the basic operations needed to filter and extract information from structured datasets (CSVs) using Python and Pandas.

Key Concepts

  • Loading data from CSV using pd.read_csv()
  • Filtering data using boolean indexing (e.g., df[df['city'] == 'Minneapolis'])
  • Selecting random or top N items from a dataset.
  • Handling multiple conditions simultaneously.

Usage Example

import pandas as pd

# Load dataset
df = pd.read_csv('data/accommodations/clean_accommodations_2022.csv')

# Filter for pet-friendly accommodations in a specific city
city_hotels = df[(df['city'] == 'Cleveland') & (df['pet_friendly'] == True)]

# Select the top option
best_hotel = city_hotels.head(1)

04 同仓库更多 Skills