Generating accounting transactions data - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Generating accounting transactions data (/thread-40774.html) |
Generating accounting transactions data - Emekadavid - Sep-22-2023 I was attempting to generate accounting transactions data for three years. I tried to use Faker but I got stuck at line 68: "Date": fake.date_between(start_date=datetime.date(f'{year}-{month}-1'), end_date=datetime.date(f'{year}-{month}-28')), with the error: TypeError: descriptor 'date' for 'datetime.datetime' objects doesn't apply to a 'str' object The python code is attached. Thanks |