会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Loading
Thank CAT
博客园
首页
管理
上一页
1
···
4
5
6
7
8
9
10
11
12
···
16
下一页
2023年2月14日
Python正则表达式
摘要: 使用正则表达式 正则表达式相关知识 在编写处理字符串的程序或网页时,经常会有查找符合某些复杂规则的字符串的需要,正则表达式就是用于描述这些规则的工具,换句话说正则表达式是一种工具,它定义了字符串的匹配模式(如何检查一个字符串是否有跟某种模式匹配的部分或者从一个字符串中将与模式匹配的部分提取出来或者替
阅读全文
posted @ 2023-02-14 23:06 ThankCAT
阅读(560)
评论(1)
推荐(0)
2023年2月13日
Python_json类方法
摘要: Python_json类方法 import requests import json headers = { "User-Agent": "Mozilla/5.0 (Linux Android 6.0Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, l
阅读全文
posted @ 2023-02-13 21:03 ThankCAT
阅读(24)
评论(0)
推荐(0)
2023年2月12日
Python request
摘要: request requests¶ get请求¶ In [ ]: import requests response=requests.get('http://www.baidu.com')#get请求 In [ ]: response.status_code #响应状态码 In [ ]: respo
阅读全文
posted @ 2023-02-12 21:54 ThankCAT
阅读(57)
评论(0)
推荐(0)
2023年2月9日
python实现百度贴吧页面爬取
摘要: import requests class TiebaSpider: """百度贴吧爬虫类""" def __init__(self, tieba_name) -> None: self.tieba_name = tieba_name self.url_temp = "https://tieba.b
阅读全文
posted @ 2023-02-09 22:00 ThankCAT
阅读(91)
评论(0)
推荐(0)
2023年2月8日
爬虫基础
摘要: HTTP基本原理 URL URL(Uniform Resource Locator),即统一资源定位符,也就是我们说的网址,统一资源定位符是对可以从互联网上得到的资源的位置 和访问方法的一种简洁的表示,是互联网上标准资源的地址。互联 网上的每个文件都有一个唯一的URL,它包含的信息指出文件的位置 以
阅读全文
posted @ 2023-02-08 22:08 ThankCAT
阅读(33)
评论(0)
推荐(0)
2023年2月7日
pandas 用户数据分析2
摘要: user_analysis 第一部分:数据类型处理¶ 数据加载¶ 字段含义: user_id:用户ID order_dt:购买日期 order_product:购买产品的数量 order_amount:购买金额 观察数据¶ 查看数据的数据类型 数据中是否存储在缺失值 将order_dt转换成时间类型
阅读全文
posted @ 2023-02-07 15:53 ThankCAT
阅读(218)
评论(0)
推荐(0)
python 不显示科学计数法
摘要: pandas方法 import pandas as pd pd.set_option('display.float_format',lambda x : '%.3f' % x) 禁用科学计数法,小数保留3位
阅读全文
posted @ 2023-02-07 10:56 ThankCAT
阅读(86)
评论(0)
推荐(0)
2023年2月6日
pandas 用户数据分析
摘要: import pandas as pd import numpy as np from matplotlib import pyplot as plt """ 第一部分:数据类型处理 数据加载 字段含义: user_id:用户ID order_dt:购买日期 order_product:购买产品的数
阅读全文
posted @ 2023-02-06 22:02 ThankCAT
阅读(90)
评论(0)
推荐(0)
2023年2月5日
Pandas 美国竞选捐赠案例
摘要: import pandas as pd """ 需求 1.加载数据 2.查看数据的基本信息 3.指定数据截取,将如下字段的数据进行提取,其他数据舍弃 cand_nm: 候选人姓名 contbr_nm : 捐赠人姓名 contbr_st:捐赠人所在州 contbr_employer : 捐赠人所在公司
阅读全文
posted @ 2023-02-05 21:44 ThankCAT
阅读(33)
评论(0)
推荐(0)
Pandas 人口密度案例分析
摘要: from turtle import left import pandas as pd """ 需求: 1.导入文件,查看原始数据 2.将人口数据和各州简称数据进行合并 3.将合并的数据中重复的abbreviation列进行删除 4.查看存在缺失数据的列 5.找到有哪些state/region使得s
阅读全文
posted @ 2023-02-05 01:14 ThankCAT
阅读(60)
评论(0)
推荐(0)
上一页
1
···
4
5
6
7
8
9
10
11
12
···
16
下一页
公告