posted @ 2019-05-13 15:42 飞行的蟒蛇 阅读(231) 评论(0) 推荐(0)
摘要:
1.合并数据或表 df_user = pd.concat(list, axis=0, ignore_index=True)#list为数据 2.筛选 1) a=df[(df.可发库存 >= 15)]#可发库存为列名,df为数据 2) a = tcdd.loc[tcdd['订单状态'] == '已取消 阅读全文
摘要:
import requestsimport reimport jsonimport pandas as pdheaders={'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, lik 阅读全文
posted @ 2019-05-13 14:24 飞行的蟒蛇 阅读(342) 评论(0) 推荐(0)
摘要:
import pandas as pd import pymysql pymysql.install_as_MySQLdb() from sqlalchemy import create_engine import time def replace_into(table_name, table_data): """ 通过relace into 方式修改数据 :param... 阅读全文
posted @ 2019-05-13 14:23 飞行的蟒蛇 阅读(206) 评论(0) 推荐(0)
摘要:
from selenium import webdriver import re import time from lxml import etree from selenium.webdriver.chrome.options import Options import pymysql import requests with open('taobao',encoding='utf-8') a... 阅读全文
posted @ 2019-05-13 14:21 飞行的蟒蛇 阅读(1302) 评论(0) 推荐(0)
摘要:
import requests import re from urllib import request import urllib.request import pymysql import time conn=pymysql.connect(host="127.0.0.1",user="root",passwd="123456",db="world") def get_url(): ... 阅读全文
posted @ 2019-01-28 11:00 飞行的蟒蛇 阅读(326) 评论(0) 推荐(0)
摘要:
import requests import time import re import json import pandas as pd headers= {'user-agent': 'mobile'} def douyin_Spyder(id,url2): data=requests.get('http://aweme.snssdk.com/aweme/v1/user/?user_... 阅读全文
posted @ 2019-01-28 10:47 飞行的蟒蛇 阅读(365) 评论(1) 推荐(0)
摘要:
https://blog.csdn.net/wave_1102/article/details/41630469 阅读全文
posted @ 2019-01-23 18:08 飞行的蟒蛇 阅读(229) 评论(0) 推荐(0)
摘要:
import pandas as pd from pandas import DataFrame import openpyxl from openpyxl import load_workbook from openpyxl import Workbook student=pd.read_excel('13.xlsx') writer = pd.ExcelWriter('12.xlsx','o... 阅读全文
posted @ 2019-01-10 17:46 飞行的蟒蛇 阅读(1321) 评论(0) 推荐(0)
摘要:
一、生成数据表 1、首先导入pandas库,一般都会用到numpy库,所以我们先导入备用: import numpy as npimport pandas as pd122、导入CSV或者xlsx文件: df = pd.DataFrame(pd.read_csv('name.csv',header= 阅读全文
posted @ 2019-01-10 11:28 飞行的蟒蛇 阅读(205) 评论(0) 推荐(0)
浙公网安备 33010602011771号