Closed shalkya closed 3 years ago
Hey
The honest answer to that is that support for dataframes is clearly out of the current scope
As you can see there is a limited support for numpy arrays in the form of the ExerciseFunctionNumpy
class,
but yes indeed supporting pandas dataframes would be a cool addition,
it's just that I haven't had a chance to need that yet ;)
not necessarily a big amount of devel time, mind you
ExerciseFunctionPandas is available as of 1.7.0
Hello again, I'm sorry if i missed something explaining how to use your module on panda dataframe directly.
I made the function called
df_rule_of_five
and i want to call it this way :new_df = df.apply(df_rule_of_five, axis=1)
I don't know how to implement that inExerciseFunction
.I could adapt the function
df_rule_of_five
so it doesn't require the use of.apply()
But i get an error when doingexo_df_rule_of_five.correction(df_rule_of_five)
I guess the code should check if input data is a df or not.
On a side note, dataframe display would be improved : Here is an example if i call the whole dataframe.
I can solve (partially) the issue if i call only
dataframe.head()