Skip to content

Commit

Permalink
DOC - Moving Tips and Trick from wiki to Style Guide - added Reading … (
Browse files Browse the repository at this point in the history
  • Loading branch information
vijaysaimutyala authored Jul 8, 2020
1 parent 2ed252a commit 74f77a1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions doc/source/development/code_style.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 74f77a1

Please sign in to comment.