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

python_ data_ analysis_ and_ mining_ action-master-2

編輯:Python
# -*- coding: utf-8 -*-
"""
Created on Sun Oct 15 19:42:13 2017
@author: wnma3
"""
import os
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import pywt
from pandas import DataFrame, Series
from scipy.interpolate import lagrange
from scipy.io import loadmat # mat yes MATLAB Special format for , call loadmat Method reading
from sklearn.cluster import KMeans
from sklearn.decomposition import PCA
"""
Code instructions :
ployinterp_column--> Lagrangian fill value
programmer_1--> Filter exception data ( Include NaN) Fill in
programmer_2--> Minimum - Maximum normalization 、 zero - Mean normalization 、 Standardization of decimal scale
programmer_4--> Basic dataframe operation
programmer_5--> Using wavelet analysis (???) Conduct feature analysis
programmer_6--> utilize PCA Calculate the eigenvector , For dimension reduction analysis
"""
path = os.getcwd()
def programmer_1():
inputfile = path + '/data/catering_sale.xls'
outputfile = path + '/tmp/sales.xls'
data = pd.read_excel(inputfile)
data[(dat

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