1numpy_data = np.array([[1, 2], [3, 4]])
2df = pd.DataFrame(data=numpy_data, index=["row1", "row2"], columns=["column1", "column2"])
3print(df)
4>>>
5 column1 column2
6row1 1 2
7row2 3 4
1numpy_data = np.array([[1, 2], [3, 4]])
2df = pd.DataFrame(data=numpy_data, index=["row1", "row2"], columns=["column1", "column2"])
3print(df)