mypackage package¶
Submodules¶
mypackage.math_ops module¶
Provides DataFrameMathOps class for arithmetic operations on pandas DataFrames.
- class mypackage.math_ops.DataFrameMathOps[source]¶
Bases:
object
Provides static methods for element-wise arithmetic operations on pandas DataFrames.
- static add(df1, df2)[source]¶
Element-wise addition of two pandas DataFrames.
- Parameters:
df1 (pd.DataFrame) – The first DataFrame.
df2 (pd.DataFrame) – The second DataFrame.
- Returns:
The result of adding df1 and df2 element-wise.
- Return type:
pd.DataFrame
- static divide(df1, df2)[source]¶
Element-wise division of two pandas DataFrames.
- Parameters:
df1 (pd.DataFrame) – The first DataFrame.
df2 (pd.DataFrame) – The second DataFrame.
- Returns:
The result of dividing df1 by df2 element-wise.
- Return type:
pd.DataFrame
Module contents¶
mypackage: Basic arithmetic operations on pandas DataFrames.