首页 > 其他分享 >读取数据集

读取数据集

时间:2022-10-07 10:33:54浏览次数:61  
标签:plt 读取数据 read filename pd import csv

import numpy as np
import matplotlib.pyplot as plt
from vmdpy import VMD
import pandas as pd
from scipy.fftpack import fft

import math

filename = r'D:\WMH\Dataset\XJTU-SY_Bearing_Datasets\Data\XJTU-SY_Bearing_Datasets\37.5Hz11kN\Bearing2_1\473.csv'
# save_path = 'D:\csv\VMD'
# f = pd.read_csv(filename, usecols=[1],nrows=10000)

f = pd.read_csv(filename, encoding='latin-1', engine='python',nrows=4096)

f = pd.read_csv(filename, encoding='latin-1', engine='python')
# f = pd.read_csv(filename)
plt.figure(figsize=(20, 2), dpi=200)
plt.plot(f, linewidth=0.2, c='r')
plt.ylabel('yuanshi')
plt.show()

标签:plt,读取数据,read,filename,pd,import,csv
From: https://www.cnblogs.com/lingxingzi/p/16759186.html

相关文章