alex_bn_lee

导航

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

统计

06 2023 档案

【849】R String Manipulation Functions
摘要:ref: [R字符串] 字符串长度、分割、拼接、截取、替代、匹配和大小写替换 ref: R String Manipulation Functions 1. nchar() With the help of this function, we can count the characters. Th 阅读全文

posted @ 2023-06-30 09:20 McDelfino 阅读(5) 评论(0) 推荐(0) 编辑

【848】Data filtering in R programming
摘要:ref: R语言data.frame常用操作 ref: Keep rows that match a condition The filter() function is used to subset a data frame, retaining all rows that satisfy you 阅读全文

posted @ 2023-06-30 09:08 McDelfino 阅读(7) 评论(0) 推荐(0) 编辑

【847】create geoDataFrame from dataframe
摘要:Ref: From WKT format Firstly, we already have a dataframe, and there is a column of geometry. But this column is in the format of the string, therefor 阅读全文

posted @ 2023-06-30 08:54 McDelfino 阅读(8) 评论(0) 推荐(0) 编辑

【846】自定义cmap,用于GeoPandas、matplotlib制图
摘要:参考:自定义颜色条教程 import matplotlib as mpl cmap = mpl.colors.ListedColormap(['yellow', '#E0E0E0']) africa_gdf.plot(column='hotspot_category', cmap=cmap, leg 阅读全文

posted @ 2023-06-30 08:38 McDelfino 阅读(59) 评论(0) 推荐(0) 编辑

【845】R语言case_when函数
摘要:参考:case_when: A general vectorised if Others 用 TRUE 表示,举例如下: x <- 1:50 case_when( x %% 35 == 0 ~ "fizz buzz", x %% 5 == 0 ~ "fizz", x %% 7 == 0 ~ "buz 阅读全文

posted @ 2023-06-29 14:49 McDelfino 阅读(168) 评论(0) 推荐(0) 编辑

【844】GADI相关
该文被密码保护。

posted @ 2023-06-28 14:31 McDelfino 阅读(2) 评论(0) 推荐(0) 编辑

【843】dataframe相关操作 (match merge)
摘要:Reference: Python for Data Analysis, 3E - Pandas pandas.DataFrame.merge 29-April-2024 use to_string() to print the entire DataFrame. Check the number 阅读全文

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

【842】GeoPandas设置坐标系
摘要:参考:geopandas--坐标系学习 gdf.crs = 'EPSG:4326' 阅读全文

posted @ 2023-06-15 10:44 McDelfino 阅读(34) 评论(0) 推荐(0) 编辑

【841】shapely合并多个Polygon/MultiPolygon
摘要:参考:Converting list of polygons to multipolygon using shapely? MultiPolygon -> Polygon list list(multiPoly.geoms) Polygon list -> MultiPolygon shapely. 阅读全文

posted @ 2023-06-13 18:54 McDelfino 阅读(664) 评论(0) 推荐(0) 编辑

【840】ChatGPT for English speaking
该文被密码保护。

posted @ 2023-06-13 10:43 McDelfino 阅读(0) 评论(0) 推荐(0) 编辑

【839】pandas 筛选某个值在某个列表中 isin
摘要:参考:pandas 筛选某个值在某个列表中 isin #筛选某个值在某个列表中 df = df[df['subject_1'].isin([1, 2, 13, 18, 25])] 阅读全文

posted @ 2023-06-09 15:16 McDelfino 阅读(23) 评论(0) 推荐(0) 编辑

【838】Oracle Cloud 新建账户
该文被密码保护。

posted @ 2023-06-01 08:50 McDelfino 阅读(0) 评论(0) 推荐(0) 编辑

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