leiap.checks¶
Some of the functions check the data entered in the database for errors or incongruities.
Functions
check_all () |
Run all check functions with some basic parameters |
check_coords_in_municipi () |
Detect Eastings or Northings that do not lie within Son Servera |
check_handmade () |
Find any indigenous sherds that are not marked as handmade |
check_measurement (measure, sd) |
Detect outliers |
-
leiap.checks.
check_all
()[source]¶ Run all check functions with some basic parameters
Returns: checks Return type: dict of pandas DataFrames
-
leiap.checks.
check_coords_in_municipi
()[source]¶ Detect Eastings or Northings that do not lie within Son Servera
Returns: bad_coords – A DataFrame of coordinates that do not lie within Son Servera Return type: pandas DataFrame
-
leiap.checks.
check_handmade
()[source]¶ Find any indigenous sherds that are not marked as handmade
Returns: flagged – A DataFrame of indigenous sherds that are not marked as handmade Return type: pandas DataFrame
-
leiap.checks.
check_measurement
(measure, sd)[source]¶ Detect outliers
Parameters: - measure ({'Length', 'Width', 'Thickness', 'Weight'}) – Measurement column to check
- sd (number) – Cutoff point; number of standard deviations from the mean
Returns: outliers – Outlier artifacts based on input parameters
Return type: pandas DataFrame