Skip to content

Commit 74f77a1

Browse files
DOC - Moving Tips and Trick from wiki to Style Guide - added Reading … (#34366)
1 parent 2ed252a commit 74f77a1

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

doc/source/development/code_style.rst

+15
Original file line numberDiff line numberDiff line change
@@ -159,3 +159,18 @@ For example:
159159

160160
# wrong
161161
from common import test_base
162+
163+
164+
Miscellaneous
165+
=============
166+
167+
Reading from a url
168+
------------------
169+
170+
**Good:**
171+
172+
.. code-block:: python
173+
174+
from pandas.io.common import urlopen
175+
with urlopen('http://www.google.com') as url:
176+
raw_text = url.read()

0 commit comments

Comments
 (0)