GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Python/ReadFromCSV.py at master · CHAOYUHONG/Python Expand file tree/ Copy pathReadFromCSV.pyMore file actions 19 lines (16 loc) · 625 Bytes / Copy pathReadFromCSV.pyFile metadata and controls19 lines (16 loc) · 625 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 __author__ = 'vamsi' import pandas as pd import numpy as np from matplotlib import pyplot as plt from matplotlib import style style.use("ggplot") """reading data from SalesData.csv file and passing data to dataframe""" df=pd.read_csv("C:\\Users\Test\Desktop\SalesData.csv") x=df["SalesID"].as_matrix()#casting SalesID to list y=df["ProductPrice"].as_matrix()#casting ProductPrice to list plt.xlabel("SalesID")#assigning X-axis label plt.ylabel("ProductPrice")#assigning Y-axis label plt.title("Sales Analysis")#assigning Title to the graph plt.plot(x,y)#Plot X and Y axis plt.show()#Show the graph |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |