diff --git a/doc/source/development/code_style.rst b/doc/source/development/code_style.rst index 6d33537a40175..11d0c35f92ff5 100644 --- a/doc/source/development/code_style.rst +++ b/doc/source/development/code_style.rst @@ -159,3 +159,18 @@ For example: # wrong from common import test_base + + +Miscellaneous +============= + +Reading from a url +------------------ + +**Good:** + +.. code-block:: python + + from pandas.io.common import urlopen + with urlopen('http://www.google.com') as url: + raw_text = url.read()