Skip to content

Commit 6d2eb7d

Browse files
committed
Updated documentation to reflect change of function name to load_transaction_items()
1 parent 0357182 commit 6d2eb7d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,13 @@ transaction_items.head()
117117

118118
2. #### Create a transaction items dataframe
119119

120-
The `utilities` module includes a range of tools that allow you to format data, so it can be used within other EcommerceTools functions. The `load_data()` function is used to create a Pandas dataframe of formatted transactional item data. When loading your transaction items data, all you need to do is define the column mappings, and the function will reformat the dataframe accordingly.
120+
The `utilities` module includes a range of tools that allow you to format data, so it can be used within other EcommerceTools functions. The `load_transaction_items()` function is used to create a Pandas dataframe of formatted transactional item data. When loading your transaction items data, all you need to do is define the column mappings, and the function will reformat the dataframe accordingly.
121121

122122
```python
123123
import pandas as pd
124124
from ecommercetools import utilities
125125

126-
transaction_items = utilities.load_data('transaction_items_non_standard_names.csv',
126+
transaction_items = utilities.load_transaction_items('transaction_items_non_standard_names.csv',
127127
date_column='InvoiceDate',
128128
order_id_column='InvoiceNo',
129129
customer_id_column='CustomerID',

ecommercetools/utilities/tools.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def load_transaction_items(filename,
2323
unit_price_column (float, optional): Name of unit price column, default is unit_price
2424
2525
Usage:
26-
transaction_items = rt.load_data('data/input/transaction_items_non_standard_names.csv',
26+
transaction_items = rt.load_transaction_items('data/input/transaction_items_non_standard_names.csv',
2727
date_column='InvoiceDate',
2828
order_id_column='OrderId',
2929
customer_id_column='CustomerId',

0 commit comments

Comments
 (0)