![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
pandas
雪儿waii
https://m.gitee.com/wangxuewaii
展开
-
pandas中的series注意点
原创 2019-01-06 17:46:20 · 1636 阅读 · 0 评论 -
pandas中有关series操作
import pandas as pd#使用默认indext = pd.Series([1,4,5,6,7])print(t)print(type(t))#自己设置indext2 = pd.Series([1,4,5,6,7],index=list("abcde"))print(t2)print(type(t2))#修改t2的值的类型为floatprint("*"*50...原创 2019-01-06 17:48:55 · 4782 阅读 · 0 评论 -
pandas的PeriodIndex的用法
PeriodIndexperiods = pd.PeriodIndex(year=data["year"],month=data["month"],day=data["day"],hour=data["hour"],freq="H")原始的数据:时间转换后的数据:<class ‘pandas.core.indexes.period.PeriodIndex’>类型.原创 2019-01-17 23:11:13 · 8364 阅读 · 2 评论 -
DataFrame的基本操作
原创 2019-01-08 23:26:27 · 882 阅读 · 0 评论 -
pandas缺失值处理
https://blog.csdn.net/lwgkzl/article/details/80948548 1.相关函数df.dropna()df.fillna()df.isnull()df.isna()2.相关概念空值:在pandas中的空值是""缺失值:在dataframe中为na...转载 2019-04-21 20:32:35 · 480 阅读 · 0 评论 -
Pycharm打印结果省略的解决方法
加入以下代码import numpy as npimport pandas as pdpd.set_option('display.max_columns',1000)pd.set_option('display.width', 1000)pd.set_option('display.max_colwidth',1000)转载 2019-05-02 14:00:05 · 1535 阅读 · 0 评论 -
pandas group分组与agg聚合
https://blog.csdn.net/u012706792/article/details/80892510 import pandas as pd df = pd.DataFrame({'Country':['China','China', 'India', 'India', 'America', 'Japan', 'China', 'India'], ...转载 2019-05-02 20:36:44 · 449 阅读 · 0 评论 -
pandas中的时间序列
pd.date_range(start=None, end=None, periods=None, freq=‘D’)start和end以及freq配合能够生成start和end范围内以频率freq的一组时间索引start和periods以及freq配合能够生成从start开始的频率为freq的periods个时间索引...原创 2019-04-23 22:15:45 · 198 阅读 · 0 评论 -
机器学习知识整理
机器学习知识整理原创 2019-05-11 17:00:06 · 182 阅读 · 0 评论