csv-tools
/csv-tools
Przegląda, filtruje, agreguje i czyści dane CSV i TSV w Pythonie: podgląd, statystyki kolumn, sortowanie, deduplikacja i sumy grupowe bez pełnego arkusza.
- Autor
- microclaw ↗
- Repozytorium
- microclaw ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 26.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 26.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Przegląda, filtruje, agreguje i czyści dane CSV i TSV w Pythonie: podgląd, statystyki kolumn, sortowanie, deduplikacja i sumy grupowe bez pełnego arkusza.
Oryginalny opis (EN)
Inspect, filter, aggregate, and clean CSV/TSV data with Python. Use when users hand over a .csv/.tsv file or paste tabular data and want a quick look, column stats, filtering, sorting, deduping, group-by sums/counts, or cleanup — without needing a full spreadsheet. Triggers on mentions of csv, tsv, columns, rows, filter, group by, aggregate, dedupe, clean data, 表格, 逗号分隔, 去重, 分组统计, 筛选.
Jak działa
- Peek: headers, row count, first rows
- Filter rows by a column
- Group-by aggregate (sum / count)
- Dedupe / clean
- Guidance
Podgląd SKILL.md
---
name: csv-tools
description: "Inspect, filter, aggregate, and clean CSV/TSV data with Python. Use when users hand over a .csv/.tsv file or paste tabular data and want a quick look, column stats, filtering, sorting, deduping, group-by sums/counts, or cleanup — without needing a full spreadsheet. Triggers on mentions of csv, tsv, columns, rows, filter, group by, aggregate, dedupe, clean data, 表格, 逗号分隔, 去重, 分组统计, 筛选."
license: Proprietary. LICENSE.txt has complete terms
compatibility: "Requires python3. Works on macOS, Linux, and Windows."
---
# CSV Tools
Use Python's stdlib `csv` (always available). Reach for `pandas` only if it's installed
and the task is heavy (`python3 -c "import pandas"` to check first).
## Peek: headers, row count, first rows
```bash
python3 - <<'PY'
import csv
with open('data.csv', newline='') as f:
r = list(csv.reader(f))
print('cols:', r[0])
print('rows:', len(r)-1)
for row in r[1:4]: print(row)
PY
```
## Filter rows by a column
```bash
python3 - <<'PY'
import csv
with open('data.csv', newline='') as f:
for row in csv.DictReader(f):
if row['status'] == 'active':
print(row['id'], row['name'])
PY
```
## Group-by aggregate (sum / count)
```bash
python3 - <<'PY'
import csv, collections
sums = collections.Counter()
with open('sales.csv', newline='') as f:
for row in csv.DictReader(f):
sums[row['region']] += float(row['amount'])
for k,v in sums.most_common():
print(f'{k}: {v:.2f}')
PY
```
## Dedupe / clean
```bash
python3 - <<'PY'
import csv
seen=set(); out=[]
with open('data.csv', newline='') as f:
rd=csv.reader(f); header=next(rd)
for row in rd:
key=tuple(c.strip() for c in row)
if key not in seen:
seen.add(key); out.append(row)
with open('clean.csv','w',newline='') as f:
w=csv.writer(f); w.writerow(header); w.writerows(out)
print('wrote', len(out), 'unique rows')
PY
```
## Guidance
- Always check the delimiter (`,` vs `\t` vs `;`) and whether there's a header row.
- Watch for quoted fields containing commas/newlines — `csv` handles them; manual splitting won't.
- Report a short summary (rows in/out, columns, key numbers), not the whole file.
- If the deliverable is a polished spreadsheet with formatting/charts, use the `xlsx` skill instead.
Wersje
W bazie nie ma innych skilli o nazwie csv-tools.
Migawka bazy z 13.11.2026 · wersja paczki d3ec2111252b (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100cisivi
Czyta, filtruje, sortuje i łączy dane w plikach CSV, TSV i ze średnikami, a także je edytuje w skryptach powłoki. - 100csv-pipeline
Przetwarza, przekształca, analizuje i raportuje dane z plików CSV i JSON: filtrowanie, łączenie zbiorów, agregaty, konwersja formatów, deduplikacja i raporty podsumowujące. - 90data-file-ops
Sprawdza, czyści, przekształca i porównuje lokalne pliki JSON, CSV, TSV i tekstowe, dając powtarzalne wyniki. - 100csv-profile
Profiluje plik CSV: typy kolumn, odsetek pustych wartości, liczbę unikalnych wartości i zduplikowane wiersze przed analizą. - 100data-wrangler
Przetwarza dane tabelaryczne produkcyjnej jakości w pandas i openpyxl: edycja, filtrowanie, sortowanie, scalanie, pivot, deduplikacja i walidacja plików CSV, Excel, JSON, Parquet i TSV przez 18 operacji CLI. - 100tsv
Przegląda, filtruje i konwertuje dane w formacie TSV, używając x-cmd, awk albo Pythona.