程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

python_ data_ analysis_ and_ mining_ action-master-11

編輯:Python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# pylint: disable=E1101
"""
Created on Sat Nov 4 11:04:32 2017
@author: lu
"""
import pandas as pd
from statsmodels.stats.diagnostic import acorr_ljungbox
from statsmodels.tsa.arima_model import ARIMA
from statsmodels.tsa.stattools import adfuller as ADF
"""
FutureWarning Warning : Unknown cause , stay spyder3 It disappeared the second time , Guess the reason for using cache
attr_trans--> Attribute transformation
programmer_1--> Data filtering
programmer_2--> Stability detection
programmer_3--> White noise detection
programmer_4--> Determine the best p、d、q value , There is a problem !!!
programmer_5--> Model test
programmer_6--> Calculate the prediction error
"""
# Attribute transformation , Change column name
def attr_trans(x):
result = pd.Series(
index=["SYS_NAME", "CWXT_DB:184:C:\\", "CWXT_DB:184:D:\\", "COLLECTTIME"])
result["SYS_NAME"] = x["SYS_NAME"].iloc[0]
result["COLLECTTIME"] = x["COLLECTTIME"].iloc[

  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved