加入收藏 | 设为首页 | 会员中心 | 我要投稿 西安站长网 (https://www.029zz.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 移动 > 正文

加速数据分析,这10个小技巧好用到哭

发布时间:2019-08-23 11:57:11 所属栏目:移动 来源:读芯术
导读:副标题#e# 划重点!!!本文列举了一些使用Python和Jupyter Notebook的技巧,讨论了如何轻松分析数据以及如何进行格式化编码、输出和调试等操作。 在编程领域,有时一个小技巧就能节省大量时间,甚至能起到救命的效果。这些必杀技往往能在未来的数据分析中发挥

可以在Jupyter笔记本中使用alert/Note boxes来标记一些重要的或需要突出的内容。笔记的颜色取决于突出内容的重要程度。用户只需在需要突出显示的单元格中添加以下任意或所有代码。

  • 蓝色笔记框:信息
  1. <div class="alert alert-block alert-info"> 
  2. <b>Tip:</b> Use blue boxes (alert-info) for tips and notes.  
  3. If it’s a note, you don’t have to include the word “Note”. 
  4. </div> 
加速数据分析,这10个小技巧好用到哭
  • 黄色笔记框:警告
Example: Yellow Boxes are generally used to include additional examples or mathematical formulas.
加速数据分析,这10个小技巧好用到哭
  • 绿色笔记框:完成
  1. <div class="alert alert-block alert-success"> 
  2. Use green box only when necessary like to display links to related content. 
  3. </div> 
加速数据分析,这10个小技巧好用到哭
  • 红色笔记框:危险
  1. <div class="alert alert-block alert-danger"> 
  2. It is good to avoid red boxes but can be used to alert users to not delete some important part of code etc.  
  3. </div> 
加速数据分析,这10个小技巧好用到哭

7. 打印单元格的所有输出

例如包含以下代码行的Jupyter笔记本单元格:

  1. In [1]: 10+5  
  2.  11+6 
  3. Out [1]: 17 

(编辑:西安站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

热点阅读