Study of Python.
摘要:参考:How to Use R and Python Together? Try These 2 Packages 实现功能:在 Python 代码中运行 R 文件,得到结果再在 Python 里面操作! import subprocess res = subprocess.call("Rscrip
阅读全文
摘要:参考:Mapping and Plotting Tools 参考:geopandas.GeoDataFrame.plot 参考:Choosing Colormaps 参考:geopandas,用python分析地理空间数据原来这么简单! 参考:「GIS教程」Python-GeoPandas地图、专题
阅读全文
摘要:参考:PySe-023-pandas.read_csv 读取 csv 文件,指定列数据类型 解决字符串数据列变为数字的问题 参考:Read a delimited file (including CSV and TSV) into a tibble Python:根据具体的列名指定数据格式 impo
阅读全文
摘要:参考:pandas: Rename column/index names (labels) of DataFrame rename(columns={字典}) 例子: print(df.rename(columns={'A': 'Col_1', 'C': 'Col_3'})) # Col_1 B C
阅读全文
摘要:参考:Pandas条件筛选并赋值实用操作一例 选择不包含以下两个值的其他内容 df_130 = df2[(df2['.region_id'] != 25025000703) & (df2['.region_id'] != 25025000504)]
阅读全文
摘要:参考:rpy2 学习笔记 参考:在python中使用R|rpy2
阅读全文
摘要:参考:pandas的DataFrame的append方法详细介绍 官方说明:pandas.DataFrame.append DataFrame.append(other, ignore_index=False, verify_integrity=False, sort=False) Append r
阅读全文
摘要:参考:【jupyter】notebook屏蔽warning信息输出 参考:lightGBM屏蔽训练过程信息 import warnings warnings.filterwarnings("ignore") lgbr = LGBR(**params) lgbr.fit(X, y, eval_set=
阅读全文
摘要:参考:数据科学 | 避坑!Python特征重要性分析中存在的问题 模型代码(复制前一个博客的内容): 查看代码 from sklearn.model_selection import train_test_split X_train, X_test, y_train, y_test = train_
阅读全文
摘要:参考:LightGBM使用 参考:在Python中使用Lightgbm 参考:官网 - lightgbm.LGBMClassifier from sklearn.model_selection import train_test_split X_train, X_test, y_train, y_t
阅读全文
摘要:参考:python怎么绘制小提琴图?|seaborn violinplot 参考:seaborn学习笔记(四):箱型图、小提琴图 参考:01 ,seaborn 基本设置 :5种风格,外边框,图位置,子图风格,文字大小,线宽 参考:matplotlib科研绘图 Times New Roman字体设置
阅读全文
摘要:参考:sklearn.metrics.confusion_matrix 参考:Confusion matrix 参考:Matplotlib setting title bold while using "Times New Roman" 参考:seaborn.heatmap 参考:Choosing
阅读全文
摘要:参考:增强Jupyter Notebook的功能,这里有四个妙招 参考:4 Awesome Tips for Enhancing Jupyter Notebooks Jupyter Notebooks have been an awesome tool for all developers look
阅读全文