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 8596d2d commit ec1eb33Copy full SHA for ec1eb33
CSV_files/read_csv.py
@@ -11,10 +11,15 @@ def read_using_DictReader():
11
for lines in csvFile:
12
return lines
13
14
-def read_by_pandas():
+def read_by_pandas_head():
15
data=pd.read_csv('CSV_files/assets/addresses.csv')
16
return data.head()
17
18
+def read_by_pandas_tail():
19
+ data=pd.read_csv('CSV_files/assets/addresses.csv')
20
+ return data.tail()
21
if __name__=="__main__":
22
print(read_using_DictReader())
- print(read_by_pandas())
23
+ print(read_by_pandas_head())
24
+ print(read_by_pandas_tail())
25
+
0 commit comments