- 博客(5)
- 收藏
- 关注
原创 感知机模型
感知机模型 from sklearn import svm import numpy as np import matplotlib.pyplot as plt import matplotlib from sklearn.model_selection import train_test_split def Iris_label(s): it = {b'Iris-setosa': -1, b'Iris-versicolor': 1, b'Iris-virginica': 2} return
2021-07-30 11:42:12
87
原创 拼接表格
把文件夹中的三张表拼接在一起 import pandas as pd import os path = "...." file_names = [] for dirpath, dirnames, filenames in os.walk(path): file_names.append(filenames) print(file_names) p1 = path + "/" + str(file_names[0][0]) p2 = path + "/" + str(file_names[0][1])
2021-05-12 12:39:57
127
原创 企业是否退市或者停牌
主要是从雪球上面爬取的 了解企业是否退市或者停牌 import requests import re import pandas as pd from sqlalchemy import create_engine def get_data(): connect_info = 'mysql+pymysql://TaoLi:158!!!AT@39.106.130.235:3306/财报?charset=utf8' sql = "select 股票代码 from 上市企业 where 上市类型
2021-05-12 12:37:39
174
原创 爬虫1
爬取新三板公司的年报pdf import requests from sqlalchemy import create_engine import pandas as pd from time import sleep import random from multiprocessing import pool def get_pdf(code): url = 'http://xinsanban.eastmoney.com/api/Article/GetGGListData' header
2021-05-12 12:34:37
115
原创 正则表达式
关于正则表达式和re https://www.cnblogs.com/shenjianping/p/11647473.html https://www.runoob.com/regexp/regexp-syntax.html
2021-04-08 16:09:51
69
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅