# -*- coding: utf-8 -*-
"""
Created on Sat Jun 8 17:18:06 2019
@author: User
"""
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
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'])
plt.hist(jddf['open_p'],10)
plt.xlabel('Opening Price')
plt.ylabel('Frequency')
plt.title('Opening Price of JD')
plt.show
运行: