自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 收藏
  • 关注

转载 pandas.to_json utf-8值而不是中文

#将dataframe转化成json文件时候,head文件发现文件不是中文解决方案:all_insurance.to_json("scrapy_insurance_kc.json", orient="records", lines=True, force_ascii=False)转载于:https://www.cnblogs.com/Tw1st-Fate/p...

2019-08-09 16:28:00 2547

转载 pandas 如何将一列列表数据展开成多行数据

1 df = pd.DataFrame({'A':df.A.repeat(df.B.str.len()),'B':np.concatenate(df.B.values)})转载于:https://www.cnblogs.com/Tw1st-Fate/p/11318552.html

2019-08-07 23:27:00 2844

转载 pandas读取xls文件异常

使用pandas读取.xls异常xls 是保存喂97-03xls格式head *.xls 文件发现是html解决方案pd.read_html("*.xls",encoding="GBK")转载于:https://www.cnblogs.com/Tw1st-Fate/p/11216144.html...

2019-07-19 23:03:00 2318

转载 pyspark配置config

使用pyspark时要注意 pyspark_python 设置为python3.5 ,可以使用ml,运行环境也应该是python3.5,版本必须一致,不然会报错。import findsparkfindspark.init()import pandas as pdimport numpy as npimport pickleimport osos.envi...

2019-06-26 22:33:00 958

转载 xgboost交叉验证以及n_jobs报错

今天用xgboost跑了一下分类发生如下报错:A worker process managed by the executor was unexpectedly terminated.This could be caused by a segmentation fault while calling the function or by an excessive memory...

2019-06-25 23:31:00 4757

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除