Considering Series for p for FixedEnergyUnits
Summary
OMEGAlpes only considers int / float / list / dict in order to create new quantity. (see omegalpes.general.optimisation.elements.quantity class)
It does not consider array (dataframe) and so raises a TypeError if an Serie is used to create a FixedEnergyUnit : raise TypeError('Unknown type for argument \'value\'')
If a serie is considered, the time should be compared to the TimeUnit of the project if possible.
For the moment on can use df = df['value'].values.tolist()
to convert the dataframe into a list of the values.