随笔分类 -  数据分析

摘要:直接上代码 初始化2个dataframe df1 = pd.DataFrame( { 'Name':['Jack', 'Kate', 'Jim', 'Steve'], 'Gender':['M','F','M','M'], 'Height':[17,15, 22, 18] } ) df2 = pd. 阅读全文
posted @ 2022-11-01 23:59 阿布_alone 阅读(1093) 评论(0) 推荐(0) 编辑
摘要:这是针对一行一条json的数据,并且json数据格式都一样的情况 import json import pandas as pd def trans(): df_data = pd.read_json("clean_data.txt", lines=True) # with pd.ExcelWrit 阅读全文
posted @ 2022-05-10 22:12 阿布_alone 阅读(1335) 评论(0) 推荐(0) 编辑
摘要:代码: 代码: 代码: 阅读全文
posted @ 2019-06-26 23:43 阿布_alone 阅读(236) 评论(0) 推荐(0) 编辑
摘要:In [1]: In [1]: In [1]: import pandas as pd import numpy as np import matplotlib.pyplot as plt plt.rcParams['font.sans-serif'] = ['SimHei'] # 用来正常显示中文 阅读全文
posted @ 2019-04-15 11:07 阿布_alone 阅读(432) 评论(0) 推荐(0) 编辑
摘要:这篇文章写得更好:http://wittyfans.com/coding/%E5%88%A9%E7%94%A8Pandas%E5%88%86%E6%9E%90%E7%BE%8E%E5%9B%BD%E4%BA%A4%E8%AD%A6%E5%BC%80%E6%94%BE%E7%9A%84%E6%90%9 阅读全文
posted @ 2019-04-05 22:43 阿布_alone 阅读(410) 评论(0) 推荐(0) 编辑
摘要:直接参考官网:https://www.joinquant.com/ 官网的比较详细,看一下就ok了 补一张图: 阅读全文
posted @ 2019-02-22 21:56 阿布_alone 阅读(1578) 评论(0) 推荐(0) 编辑
摘要:一.TuShare简介和环境安装 二.Tushare的应用 我们主要还是应该掌握如何用tushare获取股票行情数据,使用的是ts.get_hist_data()函数或者ts.get_k_data()函数。输入参数为: code:股票代码,即6位数字代码,或者指数代码(sh=上证指数 sz=深圳成指 阅读全文
posted @ 2019-02-21 21:21 阿布_alone 阅读(1974) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-02-20 22:49 阿布_alone 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-02-20 21:29 阿布_alone 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-02-20 11:44 阿布_alone 阅读(377) 评论(0) 推荐(0) 编辑
摘要:饼图可参考:https://www.cnblogs.com/biyoulin/p/9565350.html 中文显示问题: 方法一: 方法二: 阅读全文
posted @ 2019-02-20 11:41 阿布_alone 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-02-20 11:31 阿布_alone 阅读(548) 评论(3) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-02-20 11:16 阿布_alone 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-02-18 21:07 阿布_alone 阅读(649) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-02-16 09:59 阿布_alone 阅读(436) 评论(0) 推荐(1) 编辑
摘要:一.pandas数据结构介绍 二.pandas数据结构之Series 1.series Series是一种类似与一维数组的对象,由下面两部分组成 values:一组数据(ndarray) index:相关的数据索引标签 1)Series的创建 两种创建方式: (1)由列表或numpy数组创建 默认索 阅读全文
posted @ 2019-02-15 16:04 阿布_alone 阅读(1072) 评论(0) 推荐(0) 编辑
摘要:1. python数据分析基础 2. numpy 3. Scikit-Learn 4. Bokeh 5. Scipy 6. Pandas 1. python数据分析基础 2. numpy 3. Scikit-Learn 4. Bokeh 5. Scipy 6. Pandas 1. python数据分 阅读全文
posted @ 2019-02-15 14:33 阿布_alone 阅读(191) 评论(0) 推荐(0) 编辑
摘要:一.数据分析的概念 二.创建ndarray 如果一维数组不是一个规律的有序元素,而是人为的输入,就需要array()函数创建了。 In [8]: arr1 = np.array((1,20,13,28,22)) In [9]: arr1 Out[9]: array([ 1, 20, 13, 28, 阅读全文
posted @ 2019-02-15 11:22 阿布_alone 阅读(396) 评论(0) 推荐(0) 编辑

TOP
点击右上角即可分享
微信分享提示