摘要:
连接数据库 import os import pandas as pd # 修改工作路径到指定文件夹 os.chdir("D:\Python\数据处理") # 第一种连接方式 from sqlalchemy import create_engine engine = create_engine('m 阅读全文
摘要:
import pandas as pd import matplotlib.pyplot as plt inputfile = 'D:\Python\数据处理/original_data.xls' data = pd.read_excel(inputfile) lv_non = pd.value_c 阅读全文
摘要:
查看数据特征 import numpy as np import pandas as pd inputfile = 'D:\Python\数据处理/GoodsOrder.csv' data = pd.read_csv(inputfile,encoding='gbk') data.info() dat 阅读全文
摘要:
描述性统计分析 import pandas as pd datafile='D:\Python\数据处理/air_data.csv' resultfile='D:\Python\数据处理/explore.csv' data=pd.read_csv(datafile,encoding='utf-8') 阅读全文
摘要:
数据描述 1 import pandas as pd 2 import numpy as np 3 4 data=pd.read_csv("D:\Python\数据处理\data.csv") 5 description = [data.min(),data.max(),data.mean(),dat 阅读全文
摘要:
读取数据 1 import pandas as pd 2 catering_sale = 'D:\Python\数据处理/catering_sale.xls' # 餐饮数据 3 data = pd.read_excel(catering_sale, index_col = u'日期') # 读取数据 阅读全文
摘要:
TensorFlow简介 是一个基于计算图的深度学习库,具有更广泛的应用领域、良好的多语言支持、部署性能等优点,时现今最广泛使用的深度学习框架。 计算图Session Tensor 1 import tensorflow as tf 2 a = tf.constant(32) 3 b = tf.co 阅读全文
摘要:
import math from pandas import DataFrame def sigmoid(x): #映射函数 return 1/(1+math.exp(-x)) x1=[0.29,0.50,0.00,0.21,0.10,0.06,0.13,0.24,0.28] x2=[0.23,0. 阅读全文