Skip to content

Commit

Permalink
Merge pull request #136 from SemyonSinchenko/135-bad-png-links
Browse files Browse the repository at this point in the history
Fix all the links in README
  • Loading branch information
SemyonSinchenko authored Aug 22, 2024
2 parents b950c62 + e0a438b commit f051666
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def test_remove_non_word_characters_nice_error():

Here's the nicely formatted error message:

![ColumnsNotEqualError](https://github.com/MrPowers/chispa/blob/main/images/columns_not_equal_error.png)
![ColumnsNotEqualError](https://raw.githubusercontent.com/MrPowers/chispa/main/images/columns_not_equal_error.png)

You can see the `matt7` / `matt` row of data is what's causing the error (note it's highlighted in red). The other rows are colored blue because they're equal.

Expand Down Expand Up @@ -143,7 +143,7 @@ def test_remove_non_word_characters_long_error():

Here's the nicely formatted error message:

![DataFramesNotEqualError](https://github.com/MrPowers/chispa/blob/main/images/dfs_not_equal_error.png)
![DataFramesNotEqualError](https://raw.githubusercontent.com/MrPowers/chispa/main/images/dfs_not_equal_error.png)

### Ignore row order

Expand Down Expand Up @@ -181,7 +181,7 @@ assert_df_equality(df1, df2, ignore_row_order=True)

If you don't specify to `ignore_row_order` then the test will error out with this message:

![ignore_row_order_false](https://github.com/MrPowers/chispa/blob/main/images/ignore_row_order_false.png)
![ignore_row_order_false](https://raw.githubusercontent.com/MrPowers/chispa/main/images/ignore_row_order_false.png)

The rows aren't ordered by default because sorting slows down the function.

Expand Down Expand Up @@ -221,7 +221,7 @@ assert_df_equality(df1, df2, ignore_column_order=True)

Here's the error message you'll see if you run `assert_df_equality(df1, df2)`, without ignoring the column order.

![ignore_column_order_false](https://github.com/MrPowers/chispa/blob/main/images/ignore_column_order_false.png)
![ignore_column_order_false](https://raw.githubusercontent.com/MrPowers/chispa/main/images/ignore_column_order_false.png)

### Ignore nullability

Expand Down Expand Up @@ -253,7 +253,7 @@ And this `df2`:

You might be surprised to find that in this example, `df1` and `df2` are not equal and will error out with this message:

![nullable_off_error](https://github.com/MrPowers/chispa/blob/main/images/nullable_off_error.png)
![nullable_off_error](https://raw.githubusercontent.com/MrPowers/chispa/main/images/nullable_off_error.png)

Examine the code in this contrived example to better understand the error:

Expand Down Expand Up @@ -358,7 +358,7 @@ def test_shows_assert_basic_rows_equality(chispa_formats):
assert_basic_rows_equality(df1.collect(), df2.collect(), formats=chispa_formats)
```

![custom_formats](https://github.com/MrPowers/chispa/blob/main/images/custom_formats.png)
![custom_formats](https://raw.githubusercontent.com/MrPowers/chispa/main/images/custom_formats.png)

## Approximate column equality

Expand Down Expand Up @@ -394,7 +394,7 @@ def test_approx_col_equality_different():

This failing test will output a readable error message so the issue is easy to debug.

![ColumnsNotEqualError](https://github.com/MrPowers/chispa/blob/main/images/columns_not_approx_equal.png)
![ColumnsNotEqualError](https://raw.githubusercontent.com/MrPowers/chispa/main/images/columns_not_approx_equal.png)

## Approximate DataFrame equality

Expand Down Expand Up @@ -448,7 +448,7 @@ def test_approx_df_equality_different():

Here's the pretty error message that's outputted:

![DataFramesNotEqualError](https://github.com/MrPowers/chispa/blob/main/images/dfs_not_approx_equal.png)
![DataFramesNotEqualError](https://raw.githubusercontent.com/MrPowers/chispa/main/images/dfs_not_approx_equal.png)

## Schema mismatch messages

Expand Down Expand Up @@ -479,7 +479,7 @@ def test_schema_mismatch_message():

Here's the error message:

![SchemasNotEqualError](https://github.com/MrPowers/chispa/blob/main/images/schemas_not_approx_equal.png)
![SchemasNotEqualError](https://raw.githubusercontent.com/MrPowers/chispa/main/images/schemas_not_approx_equal.png)

## Supported PySpark / Python versions

Expand Down

0 comments on commit f051666

Please sign in to comment.