Just a basic question but which block me a lot. How can we extract a column from a DataFrame and have a DataFrame as output ?
Suppose that we have :
>>> dfM
<class 'pandas.core.frame.DataFrame'>
DatetimeIndex: 17544 entries, 2015-01-01 00:00:00 to 2016-12-31 23:00:00
Data columns (total 23 columns):
T1 17544 non-null values
T2 17544 non-null values
>>> df = dfM['T1']
Here df is not a DataFrame. I found a subterfuge by copy the DataFrame and del all columns but it's very time consumming.
Alexis