PyFoam.Wrappers.Pandas module¶
Extended version of the Pandas-Dataframe
-
exception
PyFoam.Wrappers.Pandas.
PandasWrapperPyFoamException
(*text)[source]¶ Bases:
PyFoam.Error.PyFoamException
The PyFoam-exception that does not expect to be caught
-
class
PyFoam.Wrappers.Pandas.
PyFoamDataFrame
(*args, **kwargs)[source]¶ Bases:
pandas.core.frame.DataFrame
This class adds some convenience functions to the regular Datafram class
-
addData
(other, sameIndex=True, mergeIndex=False, prefix=None, suffix=None, allowExtrapolate=False, interpolationMethod='values')[source]¶ Add data from another DataFrame or Series :param other: data as Pandas-DataFrame or Series :param sameIndex: assum both have the same indices. If False the other data will be interpolated to the current indices :param mergeIndex: make the result indices a mixture of the indices
-
integrate
(columns=None)[source]¶ Integrate by using the trapezoid rule. Return a dictionary with values. :param values: list of column names. If unset all are integrated
-
validLength
(columns=None)[source]¶ Length were the values are valid (not NaN) Return a dictionary with values. :param values: list of column names. If unset all are integrated
-
validOtherTypes
= (<class 'pandas.core.frame.DataFrame'>, <class 'pandas.core.series.Series'>)¶
-