Skip to content

Commit 9cd0844

Browse files
Merge pull request geekcomputers#707 from Prince326/patch-1
Update ReadFromCSV.py
2 parents cbf657f + 8763dd3 commit 9cd0844

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ReadFromCSV.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"""reading data from SalesData.csv file
99
and passing data to dataframe"""
1010

11-
df = pd.read_csv("C:\\Users\Test\Desktop\SalesData.csv") #Reading the csv file
11+
df = pd.read_csv("..\SalesData.csv") #Reading the csv file
1212
x = df["SalesID"].as_matrix() # casting SalesID to list #extracting the column with name SalesID
1313
y = df["ProductPrice"].as_matrix() # casting ProductPrice to list
1414
plt.xlabel("SalesID") # assigning X-axis label

0 commit comments

Comments
 (0)