I'm trying to import the cleaning file in the managers file like this:
import sys
import os
sys.path.append(os.path.dirname(os.path.abspath("cleaning.py")))
from cleaning import df_invoices_full
The main folder contains the files cleaning, transaction listing and a sub folder called "apps" with the managers file:
Also note that the cleaning file reads the transaction listing.csv file.
The issue I'm getting when running is:
FileNotFoundError: [Errno 2] No such file or directory: 'Transaction Listing.csv'
And "Transaction Listings.csv" is correctly loaded by cleaning but no when cleaning is imported into maganagers.
Appreciate your help.