Skip to content

Commit 44759cc

Browse files
authored
Challenge4
pandas required!
1 parent 93067ce commit 44759cc

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)