02 2021 档案

摘要:import pandas as pd import numpy as np df_day = pd.read_csv('000002_daily.csv',encoding = 'gbk') df_zjc = pd.read_csv('000002_zjc.csv',encoding = 'gbk 阅读全文
posted @ 2021-02-23 10:44 汉江S 阅读(122) 评论(0) 推荐(0)
摘要:import tushare as ts import pandas as pd import numpy as np import time ts.set_token('xxx') pro = ts.pro_api() # 获取数据 start_date = '20190101' end_date 阅读全文
posted @ 2021-02-19 22:35 汉江S 阅读(156) 评论(0) 推荐(0)
摘要:import numpy as np df = np.arange(0,210,10) s = map ( str ,df) s2 = [] for i in s: s2.append(i) print(s2) 结果: ['0', '10', '20', '30', '40', '50', '60' 阅读全文
posted @ 2021-02-19 11:31 汉江S 阅读(79) 评论(0) 推荐(0)
摘要:numpy 数组创建 数组属性 切片索引 1、使用array(列表或元组)还有arange 2、常见索引方式 arr[1:,2:] arr1[2][3] arr1[arr1>3] arr1[~(arr1>3)]取反 arr1[(arr1>3)&(arr1<10)]多条件 3、花式索引 arr1[2, 阅读全文
posted @ 2021-02-18 12:05 汉江S 阅读(70) 评论(0) 推荐(0)