Skip to content

Commit 4b7ff72

Browse files
authored
Merge pull request #27 from cparmet/docs-updates
Docs fixes and enhancements
2 parents 9aa3830 + b3ebab7 commit 4b7ff72

File tree

6 files changed

+15
-10
lines changed

6 files changed

+15
-10
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
# 🐼🩺 Pandas Checks
1+
# Pandas Checks
22
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pandas-checks)
3-
3+
4+
<img src="https://raw.githubusercontent.com/cparmet/pandas-checks/main/static/pandas-check-gh-social.jpg" alt="Banner image for Pandas Checks">
5+
46
## Introduction
57
**Pandas Checks** is a Python library for data science and data engineering. It adds non-invasive health checks for Pandas method chains.
68

@@ -52,14 +54,14 @@ def clean_iris_data(iris: pd.DataFrame) -> pd.DataFrame:
5254
)
5355
```
5456

55-
But what if you want to see what's happening to the data along the way? Or understand why a new `iris` data file makes the cleaned data look weird? Or make the pipeline more robust?
57+
But what if you want to make the pipeline more robust? Or see what's happening to the data as it flows down? Or understand why your new `iris` CSV suddenly makes the cleaned data look weird?
5658

5759
You can add some `.check` steps.
5860

5961
```python
6062

6163
(
62-
pd.read_csv('iris.csv')
64+
iris
6365

6466
# Validate that the data doesn't violate any assumptions
6567
.check.assert_data(lambda df: (df['sepal_width']> 0).all(), fail_message="Sepal width can't be negative")

docs/index.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# About
2-
2+
3+
<img src="https://raw.githubusercontent.com/cparmet/pandas-checks/main/static/pandas-check-gh-social.jpg" alt="Banner image for Pandas Checks">
4+
35
## Introduction
46

57
**Pandas Checks** is a Python library for data science and data engineering. It adds non-invasive health checks for Pandas method chains.
@@ -15,7 +17,8 @@ That way you don't need to chop up a method chain, or create intermediate variab
1517

1618
As Fleetwood Mac says, you would never break the chain.
1719

18-
[![Fleetwood Mac video for The Chain](https://img.youtube.com/vi/xwTPvcPYaOo/0.jpg)](https://www.youtube.com/watch?v=xwTPvcPYaOo)
20+
<a href="https://www.youtube.com/watch?v=xwTPvcPYaOo"><img src="https://raw.githubusercontent.com/cparmet/pandas-checks/main/static/fleetwood-mac-the-chain.jpg" alt="Fleetwood Mac YouTube video for The Chain" target="_blank"></a>
21+
1922

2023
## Giving feedback and contributing
2124

docs/usage.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ def clean_iris_data(iris: pd.DataFrame) -> pd.DataFrame:
3939
)
4040
```
4141

42-
But what if you want to see what's happening to the data along the way? Or understand why a new `iris` data file makes the cleaned data look weird? Or make the pipeline more robust?
43-
42+
But what if you want to make the pipeline more robust? Or see what's happening to the data as it flows down? Or understand why your new `iris` CSV suddenly makes the cleaned data look weird?
43+
4444
You can add some `.check` steps.
4545

4646
```python
4747

4848
(
49-
pd.read_csv('iris.csv')
49+
iris
5050

5151
# Validate that the data doesn't violate any assumptions
5252
.check.assert_data(lambda df: (df['sepal_width']> 0).all(), fail_message="Sepal width can't be negative")

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "pandas-checks"
3-
version = "0.1.7"
3+
version = "0.1.8"
44
description = "Non-invasive health checks for Pandas method chains"
55
authors = ["Chad Parmet <[email protected]>"]
66
readme = "README.md"

static/fleetwood-mac-the-chain.jpg

28.3 KB
Loading

static/pandas-check-gh-social.jpg

97.4 KB
Loading

0 commit comments

Comments
 (0)