alex_bn_lee

导航

07 2023 档案

【867】pgAdmin4 无法加载 loading 的问题解决
摘要:ref: Loading pgAdmin 4 v7.4... while opening pgAdmin I had the same problem when installing pgAdmin via the postgresql-15.3-3-windows-x64 installer. S 阅读全文

posted @ 2023-07-31 16:37 McDelfino 阅读(195) 评论(0) 推荐(0) 编辑

【866】TextCNN相关
摘要:ref: TextCNN文本分类(keras实现) 阅读全文

posted @ 2023-07-27 12:35 McDelfino 阅读(8) 评论(0) 推荐(0) 编辑

【865】PostgreSQL相关
摘要:ref: PostgreSQL 教程 ref: pgAdmin4简单备份与恢复(≧∇≦*)数据库导入导出PostgreSql (backup and restore) ref: How to Fix “Permission Denied” Error While Importing a CSV Fi 阅读全文

posted @ 2023-07-21 20:30 McDelfino 阅读(9) 评论(0) 推荐(0) 编辑

【864】pandas dataframe根据规则批量赋值
摘要:ref: Pandas新增一列并按条件赋值? 把下图中的 NaN 都赋值为 0 df.loc[条件判断, 'value'] = 0 m = pd.merge(gdf_africa, df_af_mp, how='left', on='country') m.loc[m['value'].isna() 阅读全文

posted @ 2023-07-20 14:10 McDelfino 阅读(222) 评论(0) 推荐(0) 编辑

【863】Calculate records based on the same value
摘要:Suppose we have a dataframe, it has a column of "country". It lists different names of country's names, and for one country maybe it has multiple reco 阅读全文

posted @ 2023-07-20 13:33 McDelfino 阅读(4) 评论(0) 推荐(0) 编辑

【862】as.Date in R programming
摘要:ref: R语言——日期时间处理 ref: as.Date: Date Conversion Functions to and from Character ref: Date Formats in R as.Date()it can change a normal string into a da 阅读全文

posted @ 2023-07-20 12:38 McDelfino 阅读(5) 评论(0) 推荐(0) 编辑

【861】Thematic mapping based on R programming
摘要:Ref: ggplot2 title : main, axis and legend titles Ref: ggplot2 标题居中 Ref: ggplot的3种去掉图例的方法 (theme(legend.position="none")) Ref: R绘图:一文了解ggplot2颜色的设置 Re 阅读全文

posted @ 2023-07-18 15:17 McDelfino 阅读(2) 评论(0) 推荐(0) 编辑

【860】R programming related knowledge
摘要:Ref: R 字符串 Ref: R语言遍历文件和批量输出文件 setwd(dir)getwd()getwd returns an absolute filepath representing the current working directory of the R process; setwd( 阅读全文

posted @ 2023-07-18 15:17 McDelfino 阅读(8) 评论(0) 推荐(0) 编辑

【859】JS开发相关
摘要:参考:JavaScript 教程 参考:Chrome 浏览器中执行 JavaScript HTML 中的 Javascript 脚本代码必须位于 <script> 与 </script> 标签之间。 Javascript 脚本代码可被放置在 HTML 页面的 <body> 和 <head> 部分中。 阅读全文

posted @ 2023-07-14 12:12 McDelfino 阅读(11) 评论(0) 推荐(0) 编辑

【858】tm_polygons专题地图多图层R语言
摘要:ref: tm_polygons: Draw polygons Arguments alpha transparency number between 0 (totally transparent) and 1 (not transparent). By default, the alpha val 阅读全文

posted @ 2023-07-12 08:16 McDelfino 阅读(29) 评论(0) 推荐(0) 编辑

【857】R语言实现字符串操作、补零操作
摘要:ref: Add Leading Zeros to the Elements of a Vector in R 参考代码: # 数组 > seq(12) [1] 1 2 3 4 5 6 7 8 9 10 11 12 # 格式化打印,自动补零 > sprintf("%02d", seq(12)) [1 阅读全文

posted @ 2023-07-11 19:51 McDelfino 阅读(112) 评论(0) 推荐(0) 编辑

【856】R语言palette查找
摘要:ref: palette_explorer: Explore color palettes palette_explorer() starts an interactive tool shows all Color Brewer and viridis palettes, where the num 阅读全文

posted @ 2023-07-11 08:47 McDelfino 阅读(52) 评论(0) 推荐(0) 编辑

【855】country converter, ISO alpha 3
摘要:Ref: country-converter 1.0.0 Ref: Python-pycountry | Understand How to Use pycountry These two python libraries are both used to process information a 阅读全文

posted @ 2023-07-09 11:12 McDelfino 阅读(9) 评论(0) 推荐(0) 编辑

【854】通过polygon切取tif栅格数据(rasterio读取与存储)
摘要:参考:Cutting a polygon from TIFF with Python [closed] import rasterio import rasterio.mask import geopandas as gpd dataset = rasterio.open("wc2.1_10m_el 阅读全文

posted @ 2023-07-06 08:25 McDelfino 阅读(317) 评论(0) 推荐(0) 编辑

【853】numpy里面替换值
摘要:参考:How to Replace Elements in NumPy Array (3 Examples) You can use the following methods to replace elements in a NumPy array: Method 1: Replace Eleme 阅读全文

posted @ 2023-07-06 07:48 McDelfino 阅读(57) 评论(0) 推荐(0) 编辑

【852】rasterio用来读取栅格数据
摘要:参考:使用Rasterio读取栅格数据 参考:rasterio 官方 Tutorial 参考:使用Rasterio读取栅格数据 参考:Rasterio入门 阅读全文

posted @ 2023-07-06 07:46 McDelfino 阅读(38) 评论(0) 推荐(0) 编辑

【851】空间相关性计算
摘要:参考:皮尔逊相关系数(Pearson Correlation Coefficient) 参考:空间相关系数 通过计算每个象元的相关性,然后把整个象元再描绘出来,就形成一幅地图! 参考:A&C分区|两变量相关系数空间分布图(空间演变及影响因子分析第三集:空间相关性分析) 参考:Python气象数据处理 阅读全文

posted @ 2023-07-05 15:10 McDelfino 阅读(272) 评论(0) 推荐(0) 编辑

【850】numpy处理日期数据
摘要:参考:Add Months to datetime Object in Python ☀☀☀<< 举例 >>☀☀☀ # import packages import pandas as pd # adding months to a particular date present = '2022-0 阅读全文

posted @ 2023-07-03 10:42 McDelfino 阅读(22) 评论(0) 推荐(0) 编辑

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