from NetEmbs.DataProcessing import *
YOUR_DATAFRAME = None
if YOUR_DATAFRAME is None:
d = prepare_data(d)
else:
d = prepare_data(rename_columns(YOUR_DATAFRAME), split=False)
d.head(20)
to
from NetEmbs.DataProcessing import *
df = pd.DataFrame.from_dict(journal_entries)
df.columns = ['ID', 'FA_Name', 'Debit', 'Credit']
YOUR_DATAFRAME = df
if YOUR_DATAFRAME is None:
d = prepare_data(d)
else:
d = prepare_data(YOUR_DATAFRAME, split=False)
d.head(20)
when I load the data frame it doesn't contain any names, therefore the replace function doesn't work as intended. The new code snippet fixes this.
Please change the cell:
to
when I load the data frame it doesn't contain any names, therefore the replace function doesn't work as intended. The new code snippet fixes this.