Environment Python 3.7.3
import pandas as pd s = [input().split() for i in range(3)] N = pd.DataFrame(s,columns=list("123"),index=["Tokyo","Nagoya","Osaka"]) print(N)
9 8 7 6 5 4 3 2 1
Recommended Posts