顯示文章

這裡允許您檢視這個會員的所有文章。請注意, 您只能看見您有權限閱讀的文章。


文章 - aidenjian0925

頁: [1]
1
我的csv檔路徑是
C:\Users\YEN YU\input\realAWSCloudwatch\ec2_cpu_utilization_825cc2.csv

但始終讀取不到資料… 請求各位先進幫小妹解惑…
程式碼如下

import numpy as np
from sklearn.cluster import DBSCAN
from sklearn import metrics
from sklearn.datasets.samples_generator import make_blobs
from sklearn.preprocessing import StandardScaler
import warnings
import itertools
import pandas as pd
import numpy as np
import datetime as dt
import statsmodels.api as sm
import matplotlib.pyplot as plt
plt.style.use('fivethirtyeight')


fpath = "../input/"
fname = "iap.csv"
fpath = "../realAWSCloudwatch/"
fname = "ec2_cpu_utilization_825cc2.csv"
# fname = "grok_asg_anomaly.csv"

fullPath = fpath + fname

def parser(x):
        return dt.datetime.strptime(x, "%Y-%m")
# return dt.datetime.strptime(x, "%Y-%m-%d %H:%M:%S")

data = pd.read_csv(fullPath)
data.plot()

頁: [1]