🪟 Windows TippsWindows 10 weiter stabil - die Nutzerzahlen im August 2026(05.09.2026 um 18:20 Uhr)
🐧 Linux TippsCC2tv #433: Was CachyOS anders macht als Linux Mint 🐧️(29.08.2026 um 10:00 Uhr)
🔧 ProgrammierungArti 2.6.0 released(01.09.2026 um 02:00 Uhr)
🔧 ProgrammierungGitHub Release: dependabot/dependabot-core v0.393.0 (24.08.2026)(24.08.2026 um 17:26 Uhr)
🪟 Windows TippsGitHub Release: dependabot/dependabot-core v0.394.0 (31.08.2026)(31.08.2026 um 17:46 Uhr)
🔧 ProgrammierungGitHub Release: dependabot/dependabot-core v0.395.0 (07.09.2026)(07.09.2026 um 15:21 Uhr)
🔧 ProgrammierungGitHub Release: langwatch/scenario vjavascript/v1.4.0 (26.08.2026)(26.08.2026 um 09:05 Uhr)
🔧 ProgrammierungGitHub Release: langwatch/scenario vpython/v1.4.0 (02.09.2026)(02.09.2026 um 04:47 Uhr)
🪟 Windows TippsWindows 10 weiter stabil - die Nutzerzahlen im August 2026(05.09.2026 um 18:20 Uhr)
🐧 Linux TippsCC2tv #433: Was CachyOS anders macht als Linux Mint 🐧️(29.08.2026 um 10:00 Uhr)
🔧 ProgrammierungArti 2.6.0 released(01.09.2026 um 02:00 Uhr)
🔧 ProgrammierungGitHub Release: dependabot/dependabot-core v0.393.0 (24.08.2026)(24.08.2026 um 17:26 Uhr)
🪟 Windows TippsGitHub Release: dependabot/dependabot-core v0.394.0 (31.08.2026)(31.08.2026 um 17:46 Uhr)
🔧 ProgrammierungGitHub Release: dependabot/dependabot-core v0.395.0 (07.09.2026)(07.09.2026 um 15:21 Uhr)
🔧 ProgrammierungGitHub Release: langwatch/scenario vjavascript/v1.4.0 (26.08.2026)(26.08.2026 um 09:05 Uhr)
🔧 ProgrammierungGitHub Release: langwatch/scenario vpython/v1.4.0 (02.09.2026)(02.09.2026 um 04:47 Uhr)

🔧 Programmierung 🕛 vor 5 Monaten 2 Min Lesezeit
0

Built a script to categorize expenses automatically. Saved 3 hours/month.

↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht




Built a script to categorize expenses automatically. Saved 3 hours/month.



Spent every Sunday sorting bank transactions into categories for my freelance accounting. Business meals, software subscriptions, travel, office supplies. Copying stuff from my bank CSV into a spreadsheet. After 6 months of this I finally snapped and wrote a Python script.






Before (the painful way)



Every week I'd download my bank CSV export. Then open it and categorize each transaction myself:




  • Transaction at "Starbucks" → Business meal

  • "AWS Invoice" → Software/tools

  • "United Airlines" → Travel

  • "Office Depot" → Office supplies



For maybe 40 to 60 transactions per week this took about 45 minutes. Hated it.






The script



Basic Python that reads the bank CSV and categorizes based on keywords. Nothing fancy.




CODE
import pandas as pd

# Category rules (keyword matching)
categories = {
'Software': ['aws', 'github', 'digitalocean', 'heroku', 'stripe'],
'Business Meals': ['starbucks', 'chipotle', 'subway', 'restaurant'],
'Travel': ['united', 'delta', 'airbnb', 'uber', 'lyft'],
'Office': ['staples', 'office depot', 'amazon'],
}

def categorize_transaction(description):
desc_lower = description.lower()
for category, keywords in categories.items():
if any(keyword in desc_lower for keyword in keywords):
return category
return 'Other' # Default

# Read bank CSV
df = pd.read_csv('bank_export.csv')
df['Category'] = df['Description'].apply(categorize_transaction)

# Save categorized output
df.to_csv('categorized_expenses.csv', index=False)
print(f"Categorized {len(df)} transactions")









How I use it now




  1. Download CSV from bank (once a week)

  2. Run script: python categorize.py

  3. Get categorized CSV in 2 seconds

  4. Import to Google Sheets for final review



Script handles about 85% of transactions automatically. The other 15% are random purchases I still do myself, but way better than doing everything.






What could be better



Super basic. No machine learning, no fancy NLP. Just keyword matching. Gets confused sometimes:




  • "Amazon" could be office supplies OR personal shopping

  • "Uber" to client meeting is business, Uber to gym is personal



Thought about adding ML but honestly the keyword approach works fine for my use case. If I spent more time training a model than I save, what's the point.






Time saved



Before: 45 min/week × 4 weeks = 3 hours/month


After: 10 min/week × 4 weeks = 40 min/month



Saved roughly 2h 20min/month. Worth the 2 hours I spent building it.



The keyword dict is easy to customize too. Just add your recurring vendors and categories. Put it on GitHub if anyone wants it.

Vollständiger Original-Bericht
Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
1 Quelle
Windows 10 und 11: Update zerschießt Druckfunktion und PDF-Export
1 Quelle
Nvidia killt Windows-10-Support - Bald keine Game-Ready-Treiber mehr
1 Quelle
Windows 10 weiter stabil - die Nutzerzahlen im August 2026
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Built a script to categorize expenses automatically. Saved 3 hours/month.

Thematisch verwandte Begriffe: Built, script, categorize, expenses · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...