Compare Pandas DataFrames Column-wise To compare the dataframes so that the output values are organized horizontally, you can simply invoke thecompare()method on the first dataframe and pass the second dataframe
Docstring """Compares two DataFrames, creates a report and returns useful information (see the "Returns" section).**When is this function useful**: This function should be run when `df1.equals(df2)` is False, but if that returns True, there is no use for this function.**Columns and ...
This is an example of some pandas and os functionality that's helpful to know for using wingrid.# Make a temporary directory (if it doesn't yet exist) to put data >>> if not os.path.isdir('temp'): >>> os.mkdir('temp') # Export pandas dataframes as CSV files >>> fn = os....
()function. Its parameters are the same asanalyze(), except with an inserted second parameter to cover the comparison dataframe. It is recommended to use the [dataframe, "name"] format of parameters to better differentiate between the base and compared dataframes. (e.g.[my_df, "Train"]vs...
Note that internally, this creates 2 separate dataframes to represent each resulting group. As such, it is more of a shorthand function of doing such processing manually. my_report = sv.compare_intra(my_dataframe, my_dataframe["Sex"] == "male", ["Male", "Female"], "Survived", feature...
Its parameters are the same as analyze(), except with an inserted second parameter to cover the comparison dataframe. It is recommended to use the [dataframe, "name"] format of parameters to better differentiate between the base and compared dataframes. (e.g. [my_df, "Train"] vs my_df...
Note that internally, this creates 2 separate dataframes to represent each resulting group. As such, it is more of a shorthand function of doing such processing manually. my_report = sv.compare_intra(my_dataframe, my_dataframe["Sex"] == "male", ["Male", "Female"], feature_config) ...