Python Forum
Generating accounting transactions data
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Generating accounting transactions data
#1
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

Attached Files

.py   accounting_data.py (Size: 3.41 KB / Downloads: 66)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Finding the price based on industry and number of transactions chandramouliarun 0 928 Jul-26-2022, 07:36 PM
Last Post: chandramouliarun
  Transactions between the list on python juniorcoder 5 3,305 Aug-10-2018, 08:36 PM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020