<jupyter_start><jupyter_text>Load account data<jupyter_code>df = importer.load_data(importer.FileType.ACCOUNT)
# df<jupyter_output><empty_output><jupyter_text>Add/Modify rows on condition<jupyter_code>df.loc[df['Account'] == 'eKonto', 'Type'] = 'checking'
data.add_new_operations(models.Bank.PL_MILLENIUM, account_name='<NAME>', file_name='biz1.csv')
data.add_new_operations(models.Bank.PL_ING, account_name='Konto z Lwem Direct', file_name='ing.csv')<jupyter_output><empty_output><jupyter_text>Save account file<jupyter_code>df.to_csv(config.mankoo_file_path('account'), index=False)<jupyter_output><empty_output><jupyter_text>---
 Other<jupyter_code>import numpy as np
df['Operation'] = np.where(df['Obciążenia'] < 0, df['Obciążenia'], df['Uznania'])
df

df = df.drop(columns=['Obciążenia', 'Uznania'])
df = df.rename(columns={'Data transakcji': 'Date', 'Opis': 'Title', 'Waluta': 'Currency'})
df['Bank'] = 'Millenium'
existing_columns = list(df.columns)
columns = ['Category', 'Comment']
df.reindex(existing_columns + columns, axis="columns")
df<jupyter_output><empty_output>
StarcoderdataJupyterStructuredCleanDedup