2018年4月2日
摘要: sklearn.datasets.make_classification(n_samples=100, n_features=20, n_informative=2, n_redundant=2, n_repeated=0, n_classes=2, n_clusters_per_class=2,  阅读全文
posted @ 2018-04-02 21:26 黑蝴蝶 阅读(9025) 评论(0) 推荐(0) 编辑
  2017年12月28日
摘要: DataFrame.pivot(index=None, columns=None, values=None) 功能:重塑数据(产生一个“pivot”表格)以列值为标准。使用来自索引/列的唯一的值(去除重复值)为轴形成dataframe结果。 为了精细调节控制,可以看和stack/unstack方法有 阅读全文
posted @ 2017-12-28 10:47 黑蝴蝶 阅读(4051) 评论(0) 推荐(2) 编辑
  2017年12月18日
摘要: 功能: 将当前图表保存到文件。 参数: fname : 含有文件路径的字符串或Python的文件型对象。图像格式由文件扩展名推断得出,例如, .pdf推断出PDF dpi : 图像分辨率(没英寸点数),默认为100 facecolor,edgecolor : 图像的背景色,默认为"w"(白色) fo 阅读全文
posted @ 2017-12-18 08:40 黑蝴蝶 阅读(638) 评论(0) 推荐(0) 编辑
  2017年12月17日
摘要: 参数: nrows : subplot的行数 ncols : subplot的列数 sharex : 所有subplot应该使用相同的X轴刻度(调节xlim将会影响所有subplot) sharey : 所有subplot应该使用相同的Y轴刻度(调节ylim将会影响所有subplot) subplo 阅读全文
posted @ 2017-12-17 10:49 黑蝴蝶 阅读(6130) 评论(0) 推荐(0) 编辑
  2017年12月10日
摘要: class pandas.Index 功能:不可变的ndarray实现一个有序的,可分区的集合。 基本对象存储所有pandas对象的轴标签 参数:data : array-like (1-dimensional) dtype : NumPy dtype (default: object) copy  阅读全文
posted @ 2017-12-10 08:38 黑蝴蝶 阅读(235) 评论(0) 推荐(0) 编辑
  2017年12月5日
摘要: pandas.concat(objs, axis=0, join='outer', join_axes=None, ignore_index=False, keys=None, levels=None,names=None, verify_integrity=False, copy=True) 沿着 阅读全文
posted @ 2017-12-05 16:04 黑蝴蝶 阅读(375) 评论(0) 推荐(0) 编辑
  2017年12月1日
摘要: DataFrame.merge(right, how='inner', on=None, left_on=None, right_on=None, left_index=False, right_index=False,sort=False, suffixes=('_x', '_y'), copy= 阅读全文
posted @ 2017-12-01 16:36 黑蝴蝶 阅读(2285) 评论(0) 推荐(0) 编辑
  2017年11月28日
摘要: DataFrame.to_csv(path_or_buf=None, sep=', ', na_rep='', float_format=None, columns=None, header=True,index=True, index_label=None, mode='w', encoding= 阅读全文
posted @ 2017-11-28 22:07 黑蝴蝶 阅读(12236) 评论(0) 推荐(0) 编辑
摘要: pandas.date_range(start=None, end=None, periods=None, freq='D', tz=None, normalize=False, name=None,closed=None, **kwargs) 功能:返回一个固定的频率DatetimeIndex,以 阅读全文
posted @ 2017-11-28 20:02 黑蝴蝶 阅读(1089) 评论(0) 推荐(0) 编辑
摘要: Series.value_counts(normalize=False, sort=True, ascending=False, bins=None, dropna=True) 功能:返回包含唯一值计数的对象。结果对象将按降序排列,以便第一个元素是最常出现的元素。 不包括默认的NA值。 参数:nor 阅读全文
posted @ 2017-11-28 09:05 黑蝴蝶 阅读(3446) 评论(0) 推荐(0) 编辑