10.12. copro.utils.get_conflict_datapoints_only

copro.utils.get_conflict_datapoints_only(X_df, y_df)[source]

Filters out only those polygons where conflict was actually observed in the test-sample.

Parameters
  • X_df (dataframe) – variable values per polygon.

  • y_df (dataframe) – conflict data per polygon.

Returns

variable values for polyons where conflict was observed. dataframe: conflict data for polyons where conflict was observed.

Return type

dataframe