# -*- coding: utf-8 -*-
"""
Created on Sat Jun 8 10:55:40 2019
@author: User
"""
import numpy as np
import pandas as pd
#import matplotlib as mpl
#import matplotlib.pyplot as plt
#import datetime
print('\n pd.read_table:')
jddf=pd.read_csv('data\stock50.csv',sep=',',header=None,
names=['id','time','code','open_p','close_p','low_p','vol','high_p','col'])
jddf['time']=jddf['time'].astype(np.str_)
jddf['time'] = pd.to_datetime(jddf['time'],format="%Y%m%d")
jddf=jddf.set_index('time')
print(jddf.info())
jddf[['open_p','close_p']].plot(use_index=True,grid=True)
运行: