m38 m78 alpha
4.4717 4.8745
4.4569 4.6491
4.5101 4.7262
4.4407 4.8234
4.1184 4.3862
3.8448 4.2816
3.7246 4.6183
3.2857 4.6744
For the above sample data (actually 8000 rows) i need to calculate alpha(column), using the log function.
In: alpha = (np.log([dataset.m38,dataset.m78])/np.math.log(38,78.7))
OUT: array([[1.79754463, 1.90105609], [1.7935659 , 1.8442364 ], [1.80780671, 1.86397626], ..., [2.06431358, 2.40416332], [2.08820691, 2.41635699], [2.09982107, 2.39551918]])
I converted this into dataframe by using the below code:
In: alpha = pd.DataFrame(data = alpha)
OUT: 2 rows × 8046 columns
Now, i used alpha.T to get this in 8046 rows and 2 columns.
Why i am getting 2 columns not one? and how should i convert it into one column?