Organizing Financial Transactions
Example Prompt:
Example Response:
import pandas as pd
transactions = pd.read_csv('path_to_file.csv')
print(transactions.head())
income = transactions[transactions['Amount'] > 0]
expenses = transactions[transactions['Amount'] < 0]
total_income = income['Amount'].sum()
total_expenses = expenses['Amount'].sum()
print('Total Income:', total_income)
print('Total Expenses:', total_expenses)
Related Tasks:
Reconciling Bank Statements
Example Prompt:
Example Response:
bank_statement = pd.read_csv('bank_statement.csv')
bookkeeping = pd.read_csv('bookkeeping.csv')
bank_statement['Date'] = pd.to_datetime(bank_statement['Date'])
bookkeeping['Date'] = pd.to_datetime(bookkeeping['Date'])
merged_data = pd.merge(bank_statement, bookkeeping, on=['Date', 'Amount'], how='outer', indicator=True)
discrepancies = merged_data[merged_data['_merge'] != 'both']
print(discrepancies)
Related Tasks:
Creating Invoices
Example Prompt:
Example Response:
Your Business Name
Your Address
City, State, Zip
Phone: (123) 456-7890
Email: info@yourbusiness.com
Invoice Date: [Insert Date]
Bill To:
Customer Name: [Insert Customer Name]
Address: [Insert Customer Address]
Services Provided:
- [Service 1 Description] - $[Amount 1]
- [Service 2 Description] - $[Amount 2]
Total Amount Due: $[Total Amount]
Payment Terms: Due upon receipt. Accepted methods: Credit Card, PayPal, Bank Transfer.
Invoice Number: [Insert Invoice Number]
Related Tasks:
Generating Financial Reports
Example Prompt:
Example Response:
financial_data = pd.read_csv('financial_data.csv')
print(financial_data.head())
income = financial_data[financial_data['Type'] == 'Income']
expenses = financial_data[financial_data['Type'] == 'Expense']
total_income = income['Amount'].sum()
total_expenses = expenses['Amount'].sum()
net_profit_loss = total_income - total_expenses
Profit and Loss Report
-----------------------
Total Income: $[Total Income]
Total Expenses: $[Total Expenses]
Net Profit/Loss: $[Net Profit/Loss]
import matplotlib.pyplot as plt
plt.bar(['Income', 'Expenses'], [total_income, total_expenses])
plt.title('Income vs Expenses')
plt.show()
Related Tasks:
Preparing Tax Documents
Example Prompt:
Example Response:
financial_data = pd.read_csv('financial_data.csv')
income_sources = financial_data[financial_data['Type'] == 'Income']
deductible_expenses = financial_data[financial_data['Type'] == 'Expense']
Related Tasks: