![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
Matrix-yang
try again
展开
-
pandans入门教程
dataframe数据切片1.选择行列dataframe.loc[ row_start:row_stop,[col_name]]2.筛选满足条件的行train_data = dataframe[dataframe['DAY'] < day]d原创 2018-08-30 16:39:12 · 5575 阅读 · 2 评论 -
设置 jupyter notebook 可远程访问
1. 生成一个 notebook 配置文件默认情况下,配置文件 ~/.jupyter/jupyter_notebook_config.py 并不存在,需要自行创建。使用下列命令生成配置文件:jupyter notebook --generate-configWriting default config to: /root/.jupyter/jupyter_notebook_config.p...原创 2018-10-05 12:11:30 · 3925 阅读 · 0 评论 -
Matplotlib 入门教程
https://www.jianshu.com/p/aa4150cf6c7f?winzoom=1转载 2018-09-30 15:37:40 · 146 阅读 · 0 评论 -
__len__和__getitem__
示例代码import collectionsCard = collections.namedtuple('Card', ['rank', 'suit'])class FrenchDeck:ranks = [str(n) for n in range(2, 11)] + list('JQKA')suits = 'spades diamonds clubs hearts'.split()d...原创 2018-10-22 17:25:35 · 403 阅读 · 0 评论 -
numpy使用经验
保存到文件np.savetxt("stat.txt", stat);新建数组stat=np.zeros((1747,1747),int)设置输出完整数组np.set_printoptions(threshold=np.inf)原创 2018-11-29 10:09:21 · 202 阅读 · 0 评论