alex_bn_lee

导航

上一页 1 ··· 52 53 54 55 56 57 58 59 60 ··· 245 下一页

2023年7月3日 #

【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 阅读(27) 评论(0) 推荐(0)

2023年6月30日 #

【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 阅读(15) 评论(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 阅读(29) 评论(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 阅读(24) 评论(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 阅读(98) 评论(0) 推荐(0)

上一页 1 ··· 52 53 54 55 56 57 58 59 60 ··· 245 下一页