上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 40 下一页
摘要: 直方图 详见直方图与离散化 (opens new window)。 In [68]: s = pd.Series(np.random.randint(0, 7, size=10)) In [69]: s Out[69]: 0 4 1 2 2 1 3 2 4 6 5 4 6 4 7 6 8 4 9 4 阅读全文
posted @ 2021-11-01 19:33 不详·Christina 阅读(30) 评论(0) 推荐(0)
摘要: 字符串方法 Series 的 str 属性包含一组字符串处理功能,如下列代码所示。注意,str 的模式匹配默认使用正则表达式 (opens new window)。详见矢量字符串方法 (opens new window)。 In [71]: s = pd.Series(['A', 'B', 'C', 阅读全文
posted @ 2021-10-29 20:46 不详·Christina 阅读(23) 评论(0) 推荐(0)
摘要: 今天我们进行相同图的比较 同样出了岔子,每走一步都出岔子 public static String SelfieAnime(byte[] file,String savePath,String suffixName) { // 请求url String url = "https://aip.baid 阅读全文
posted @ 2021-10-28 20:14 不详·Christina 阅读(29) 评论(0) 推荐(0)
摘要: 合并(Merge) #结合(Concat) Pandas 提供了多种将 Series、DataFrame 对象组合在一起的功能,用索引与关联代数功能的多种设置逻辑可执行连接(join)与合并(merge)操作。 详见合并 (opens new window)。 concat() (opens new 阅读全文
posted @ 2021-10-27 19:20 不详·Christina 阅读(29) 评论(0) 推荐(0)
摘要: 这个实现也是出了点问题,还在找毛病 public static String advancedGeneral(String filePath) { // 请求url String url = "https://aip.baidubce.com/rest/2.0/image-classify/v2/a 阅读全文
posted @ 2021-10-26 20:33 不详·Christina 阅读(33) 评论(0) 推荐(0)
摘要: 第一章 整洁代码 书中通过各种举例,来告诉我们一件事:时时保持代码整洁。 从15年年末开始做游戏客户端程序,自己写过不少烂代码,也写了些还算能看的代码。 个人觉得,最最基本的就是要让自己的代码尽可能的干净——先不谈方法封装之类的问题,只说格式——代码的缩进是不是保持一致了,空行用的对不对,没用的注释 阅读全文
posted @ 2021-10-25 21:31 不详·Christina 阅读(85) 评论(0) 推荐(0)
摘要: public static String getAuth(String ak, String sk) { // 获取token地址 String authHost = "https://aip.baidubce.com/oauth/2.0/token?"; String getAccessToken 阅读全文
posted @ 2021-10-21 20:37 不详·Christina 阅读(24) 评论(0) 推荐(0)
摘要: public static String advancedGeneral(File file) { // 请求url String url = "https://aip.baidubce.com/rest/2.0/image-classify/v2/advanced_general"; try { 阅读全文
posted @ 2021-10-20 20:27 不详·Christina 阅读(17) 评论(0) 推荐(0)
摘要: 连接(join) SQL 风格的合并。 详见数据库风格连接 (opens new window)。 In [77]: left = pd.DataFrame({'key': ['foo', 'foo'], 'lval': [1, 2]}) In [78]: right = pd.DataFrame( 阅读全文
posted @ 2021-10-19 21:14 不详·Christina 阅读(29) 评论(0) 推荐(0)
摘要: 追加(Append) 为 DataFrame 追加行。详见追加 (opens new window)文档。 In [87]: df = pd.DataFrame(np.random.randn(8, 4), columns=['A', 'B', 'C', 'D']) In [88]: df Out[ 阅读全文
posted @ 2021-10-18 18:20 不详·Christina 阅读(21) 评论(0) 推荐(0)
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 40 下一页