We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7662c09 commit 966412cCopy full SHA for 966412c
CSV_files/read_csv.py
@@ -1,8 +1,8 @@
1
import csv
2
3
-def read_using_DictReader():
+def read_using_DictReader(path):
4
# opening the CSV file
5
- with open('CSV_files/assets/addresses.csv', mode ='r') as file:
+ with open(path, mode ='r') as file:
6
# reading the CSV file
7
csvFile = csv.DictReader(file)
8
@@ -14,4 +14,4 @@ def read_using_DictReader():
14
15
16
if __name__=="__main__":
17
- print(read_using_DictReader())
+ print(read_using_DictReader('CSV_files/assets/addresses.csv'))
0 commit comments