18 lines
575 B
Python
18 lines
575 B
Python
import pandas as pd
|
|
|
|
# Excel-Datei lesen - Tabelle2
|
|
df = pd.read_excel('C:\\Users\\renet\\.openclaw\\workspace\\buchhaltungs-app\\Schulden Kerstin.xlsx', sheet_name='Tabelle2', header=0)
|
|
|
|
print("Erste 30 Zeilen der Excel-Tabelle:")
|
|
print("="*80)
|
|
for idx, row in df.head(30).iterrows():
|
|
datum = row.iloc[0]
|
|
beschreibung = row.iloc[1]
|
|
betrag = row.iloc[2]
|
|
|
|
print(f"Zeile {idx}: Datum='{datum}' (Typ: {type(datum)}), Betrag='{betrag}', Beschreibung='{beschreibung}'")
|
|
|
|
print("\n" + "="*80)
|
|
print("Rohdaten (erste 30 Zeilen):")
|
|
print(df.head(30).to_string())
|