recently, I want to process the form for analysis. Due to the lack of experience in dealing with sql or csv, I have encountered the following problems and asked to solve them: question 1: companyID fresh 23865 13-2 23866 10-3 23867 8-...
I have a data, he is such an array a = [{general error: 0}, {general error: 0}, {accident symptom: 1}] how can I convert this a data into a = [ {name: general error below, Value: 0}, {name: general error, Value: 0}, {name: accident symptom, Value:...
import requests from lxml import html import time headers = { User-Agent : Mozilla 5.0 (Windows NT 10.0; WOW64) AppleWebKit 537.36 (KHTML, like Gecko) Chrome 55.0.2883.87 UBrowser 6.2.4094.1 Safari 537.36 } url = http: finance.jrj.com.cn 2018 01 ...
1. When I was crawling a web page, when I was dealing with data, I encountered a kind of dict type data, which I couldn t handle. I tried a variety of methods, but I couldn t find a solution. The code is as follows: def stock_parse (): url = http...
when using pandas for file writing, if the original sheet already has data, the newly written data is overwritten on the original data without deletion. For example, there are 4 rows of data originally, and I want to delete one row. After read is datafr...