@@ -66,19 +66,19 @@ Write to an xls file
66
66
67
67
Here's the sample code to write a dictionary to an xls file::
68
68
69
- >>> from pyexcel_xls import store_data
69
+ >>> from pyexcel_xls import save_data
70
70
>>> data = OrderedDict() # from collections import OrderedDict
71
71
>>> data.update({"Sheet 1": [[1, 2, 3], [4, 5, 6]]})
72
72
>>> data.update({"Sheet 2": [["row 1", "row 2", "row 3"]]})
73
- >>> store_data ("your_file.xls", data)
73
+ >>> save_data ("your_file.xls", data)
74
74
75
75
Read from an xls file
76
76
**********************
77
77
78
78
Here's the sample code::
79
79
80
- >>> from pyexcel_xls import load_data
81
- >>> data = load_data ("your_file.xls")
80
+ >>> from pyexcel_xls import get_data
81
+ >>> data = get_data ("your_file.xls")
82
82
>>> import json
83
83
>>> print(json.dumps(data))
84
84
{"Sheet 1": [[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]], "Sheet 2": [["row 1", "row 2", "row 3"]]}
@@ -88,7 +88,7 @@ Write an xls to memory
88
88
89
89
Here's the sample code to write a dictionary to an xls file::
90
90
91
- >>> from pyexcel_xls import store_data
91
+ >>> from pyexcel_xls import save_data
92
92
>>> data = OrderedDict()
93
93
>>> data.update({"Sheet 1": [[1, 2, 3], [4, 5, 6]]})
94
94
>>> data.update({"Sheet 2": [[7, 8, 9], [10, 11, 12]]})
@@ -107,7 +107,7 @@ Continue from previous example::
107
107
>>> # This is just an illustration
108
108
>>> # In reality, you might deal with xls file upload
109
109
>>> # where you will read from requests.FILES['YOUR_XL_FILE']
110
- >>> data = load_data (io)
110
+ >>> data = get_data (io)
111
111
>>> print(json.dumps(data))
112
112
{"Sheet 1": [[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]], "Sheet 2": [[7.0, 8.0, 9.0], [10.0, 11.0, 12.0]]}
113
113
0 commit comments