- Python Data Analysis
- Ivan Idris
- 179字
- 2021-08-05 17:31:49
Reading manual pages
When we are in IPython's pylab mode ($ ipython –pylab
), we can open manual pages for NumPy functions with the help
command. It is not necessary to know the name of a function. We can type a few characters and then let tab completion do its work. Let's, for instance, browse the available information for the arange()
function.
We can browse the available information in either of the following two ways:
- Calling the help function: Call the
help
command. Type in a few characters of the function and press the Tab key. - Querying with a question mark: Another option is to append a question mark to the function name. You will then, of course, need to know the function name, but you don't have to type
help
, for example:In [3]: arange?
Tab completion is dependent on
readline
, so you need to make sure that it is installed. It can be installed withsetuptools
with one of the following commands:$ easy_install readline $ pip install readline
The question mark gives you information from docstrings.
推薦閱讀
- 大數據技術與應用基礎
- Mastering Matplotlib 2.x
- Hands-On Data Science with SQL Server 2017
- 物聯網與云計算
- RPA:流程自動化引領數字勞動力革命
- Spark大數據技術與應用
- 21天學通Visual C++
- Moodle Course Design Best Practices
- Blender 3D Printing by Example
- PVCBOT機器人控制技術入門
- 工業機器人維護與保養
- Artificial Intelligence By Example
- Introduction to R for Business Intelligence
- 筆記本電腦維修之電路分析基礎
- JSP通用范例開發金典