@@ -93,7 +93,7 @@ Here's the sample code to write a dictionary to an xls file::
93
93
>>> data.update({"Sheet 1": [[1, 2, 3], [4, 5, 6]]})
94
94
>>> data.update({"Sheet 2": [[7, 8, 9], [10, 11, 12]]})
95
95
>>> io = StringIO()
96
- >>> writer = store_data(io, data)
96
+ >>> store_data(io, data)
97
97
>>> # do something with the io
98
98
>>> # In reality, you might give it to your http response
99
99
>>> # object for downloading
@@ -128,8 +128,6 @@ Here is the sample code::
128
128
129
129
>>> import pyexcel as pe
130
130
>>> from pyexcel.ext import xls
131
-
132
- # "example.xls"
133
131
>>> sheet = pe.get_book(file_name="your_file.xls")
134
132
>>> sheet
135
133
Sheet Name: Sheet 1
@@ -157,9 +155,9 @@ You got to wrap the binary content with stream to get xls working::
157
155
158
156
>>> # This is just an illustration
159
157
>>> # In reality, you might deal with xls file upload
160
- >>> # where you will read from requests.FILES['YOUR_XL_FILE ']
161
- >>> xlfile = "another_file.xls"
162
- >>> with open(xlfile , "rb") as f:
158
+ >>> # where you will read from requests.FILES['YOUR_XLS_FILE ']
159
+ >>> xlsfile = "another_file.xls"
160
+ >>> with open(xlsfile , "rb") as f:
163
161
... content = f.read()
164
162
... r = pe.get_book(file_type="xls", file_content=content)
165
163
... print(r)
@@ -208,7 +206,7 @@ Dependencies
208
206
209
207
1. xlrd
210
208
2. xlwt-future
211
-
209
+ 3. pyexcel-io >= 0.0.4
212
210
213
211
.. testcode ::
214
212
:hide:
0 commit comments