Skip to content

Commit 85a6c2b

Browse files
committed
Update code in Readme according to pe v0.1.5
1 parent 6d9e481 commit 85a6c2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ Here is the sample code::
138138
>>> from pyexcel.ext import xls
139139
140140
# "example.xls"
141-
>>> sheet = pe.load_book("your_file.xls")
141+
>>> sheet = pe.get_book(file_name="your_file.xls")
142142
>>> sheet
143143
Sheet Name: Sheet 1
144144
+---+---+---+
@@ -169,7 +169,7 @@ You got to wrap the binary content with stream to get xls working::
169169
>>> xlfile = "another_file.xls"
170170
>>> with open(xlfile, "rb") as f:
171171
... content = f.read()
172-
... r = pe.load_book_from_memory("xls", content)
172+
... r = pe.get_book(file_type="xls", content=content)
173173
... print(r)
174174
...
175175
Sheet Name: Sheet 1

0 commit comments

Comments
 (0)