标签:render open select 处理 python pen tis panda span
本地代码是.ipynb格式的转换到博客上很麻烦,这里展示部分代码,了解更多可以查看我的git-hub:https://github.com/Yangami/Python-for-Statisticians/tree/master/Numpy
#导入numpy、pandas import pandas as pd import numpy as np
txt_dir=‘./txt_rdata/002058.txt‘ obj_dir=‘train_true.txt‘ csv_dir=‘./csv_rdata/KNN_train_6.csv‘
open(txt_dir).readlines()
open(‘train_true.txt‘).readlines()
open(‘./csv_rdata/KNN_train_0.csv‘).readlines()[:5]
csv_df=pd.read_csv(csv_dir,index_col=0) #csv_df[‘600449.XSHG‘] csv_df
展示为部分内容更多内容参见github
标签:render open select 处理 python pen tis panda span
原文地址:https://www.cnblogs.com/Yangami/p/10987585.html