pydatafaker.business.create_po_table¶
-
pydatafaker.business.create_po_table(vendor_id, mean_po_amount=1000000, sd_po_amount=250000, n=100)[source]¶ Create a table of fake purchase orders (PO).
- Parameters
vendor_id (list) – A list of vendor ids to randomly assign to employees.
n (int, optional) – The number of additional POs to create in excess of 1 PO for each vendor. By default 100.
mean_po_amount (int, optional) – Mean value for normal distribution, by default 1_000_000.
sd_po_amount (int, optional) – Standard deviation value for normal distribution, by default 250_000.
- Returns
A dataframe containing: po_id, vendor_id, and po_amount
- Return type
pandas.DataFrame
Examples
>>> from pydatafaker import business >>> business.create_po_table(['vendor_1', 'vendor_2'], n=3) po_id vendor_id po_amount 0 po_00001 vendor_1 913350 1 po_00002 vendor_2 852461 2 po_00003 vendor_2 1355507 3 po_00004 vendor_1 1064312 4 po_00005 vendor_1 1017772