mirror of
https://github.com/donnemartin/data-science-ipython-notebooks.git
synced 2024-03-22 13:30:56 +08:00
Added snippet to access help
This commit is contained in:
parent
35b16335c7
commit
a0f928a591
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"metadata": {
|
||||
"name": "",
|
||||
"signature": "sha256:0352470b73b74e7c85e4f85e86fee12d65fbbd4a1e28a93edffaf78162a96fe2"
|
||||
"signature": "sha256:e8f1f87360c2cd61701f17bc189a56ae6bab746a065f05366ae4bd3aa5539639"
|
||||
},
|
||||
"nbformat": 3,
|
||||
"nbformat_minor": 0,
|
||||
|
@ -254,6 +254,32 @@
|
|||
],
|
||||
"prompt_number": 7
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"collapsed": false,
|
||||
"input": [
|
||||
"# Access help\n",
|
||||
"help(str.upper)"
|
||||
],
|
||||
"language": "python",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"output_type": "stream",
|
||||
"stream": "stdout",
|
||||
"text": [
|
||||
"Help on method_descriptor:\n",
|
||||
"\n",
|
||||
"upper(...)\n",
|
||||
" S.upper() -> string\n",
|
||||
" \n",
|
||||
" Return a copy of the string S converted to uppercase.\n",
|
||||
"\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"prompt_number": 13
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"collapsed": false,
|
||||
|
@ -386,17 +412,8 @@
|
|||
]
|
||||
}
|
||||
],
|
||||
"prompt_number": 11
|
||||
"prompt_number": 12
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"collapsed": false,
|
||||
"input": [],
|
||||
"language": "python",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"prompt_number": 11
|
||||
}
|
||||
],
|
||||
"metadata": {}
|
||||
}
|
||||
|
|
|
@ -21,4 +21,4 @@ class Util:
|
|||
"""
|
||||
if not isinstance(obj, list) and cls.is_iterable(obj):
|
||||
obj = list(obj)
|
||||
return obj
|
||||
return obj
|
Loading…
Reference in New Issue
Block a user