I have a numpy array and I want to convert it into a dataframe.
import numpy as np
import pandas as pd
nparray = np.array([[1,2,3,4,5],[6,7,8,9,10]])
How do I convert it into a dataframe where the data will be like this:
col1 col2
1 6
2 7
3 8
4 9
5 10