Skip to content

Commit 8eb54ba

Browse files
Merge pull request #9 from Naman1233/patch-2
Challenge4
2 parents 1224952 + 44759cc commit 8eb54ba

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
from pandas import read_csv
2+
3+
def CSV_print(filename):
4+
df = read_csv(filename)
5+
columns = df.columns
6+
for i in range(len(columns)):
7+
print("Row ", i+1, ": ", ", ".join(map(str, df[columns[i]])))
8+
9+
if __name__ == "__main__":
10+
filename = str(input("Enter filename or path:"))
11+
print(filename)
12+
CSV_print(filename)
13+
14+

0 commit comments

Comments
 (0)