上一页 1 ··· 318 319 320 321 322 323 324 325 326 ··· 494 下一页
摘要: NumPy Reference: Mathematical functions numpy.sum: Sum of elements - along rows, columns or all numpy.min, numpy.max, numpy.mean: Simple statistics Al 阅读全文
posted @ 2017-12-18 21:08 Zhentiw 阅读(180) 评论(0) 推荐(0)
摘要: When making a reusable component, you'll find that people often like to have the API they're most familiar with, so in this lesson we'll recreate the  阅读全文
posted @ 2017-12-18 19:50 Zhentiw 阅读(217) 评论(0) 推荐(0)
摘要: If you have state that needs to exist throughout your application, then you may find yourself passing props all over the application and even "drillin 阅读全文
posted @ 2017-12-18 15:55 Zhentiw 阅读(256) 评论(0) 推荐(0)
摘要: Attributes of numpy.ndarray: numpy.ndarray.shape: Dimensions (height, width, ...) numpy.ndarray.ndim: No. of dimensions = len(shape) numpy.ndarray.siz 阅读全文
posted @ 2017-12-17 23:38 Zhentiw 阅读(231) 评论(0) 推荐(0)
摘要: import numpy as np def test_run(): data=np.random.random((3,4)) """ [[ 0.80150549 0.96756513 0.18914514 0.85937016] [ 0.23563908 0.75685996 0.46804508 0.91735016] [ 0.7054... 阅读全文
posted @ 2017-12-17 23:30 Zhentiw 阅读(287) 评论(0) 推荐(0)
摘要: It is easy to compare the data by normalize it. 阅读全文
posted @ 2017-12-17 23:02 Zhentiw 阅读(1861) 评论(0) 推荐(0)
摘要: import os import pandas as pd import matplotlib.pyplot as plt def test_run(): start_date='2017-01-01' end_data='2017-12-15' dates=pd.date_range(start_ 阅读全文
posted @ 2017-12-17 22:47 Zhentiw 阅读(458) 评论(0) 推荐(0)
摘要: For example we have dataframe like this: Now we only we want to get highlighted part: We can use Dataframe.ix[] method to get date related index data 阅读全文
posted @ 2017-12-17 22:35 Zhentiw 阅读(322) 评论(0) 推荐(0)
摘要: Create an empty Data frame with date index: Now we want to load SPY.csv and get 'Adj Close' column value and copy the range (11-21, 11-28) data to the 阅读全文
posted @ 2017-12-17 02:12 Zhentiw 阅读(781) 评论(0) 推荐(0)
摘要: Install: 阅读全文
posted @ 2017-12-15 20:58 Zhentiw 阅读(368) 评论(0) 推荐(0)
上一页 1 ··· 318 319 320 321 322 323 324 325 326 ··· 494 下一页