panditor 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- panditor-0.1.0/LICENSE +0 -0
- panditor-0.1.0/PKG-INFO +20 -0
- panditor-0.1.0/README.md +8 -0
- panditor-0.1.0/panditor/__init__.py +3 -0
- panditor-0.1.0/panditor/compare.py +22 -0
- panditor-0.1.0/panditor.egg-info/PKG-INFO +20 -0
- panditor-0.1.0/panditor.egg-info/SOURCES.txt +10 -0
- panditor-0.1.0/panditor.egg-info/dependency_links.txt +1 -0
- panditor-0.1.0/panditor.egg-info/requires.txt +1 -0
- panditor-0.1.0/panditor.egg-info/top_level.txt +1 -0
- panditor-0.1.0/pyproject.toml +19 -0
- panditor-0.1.0/setup.cfg +4 -0
panditor-0.1.0/LICENSE
ADDED
|
File without changes
|
panditor-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: panditor
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Utilities for comparing missing value imputations in pandas DataFrames
|
|
5
|
+
Author: Nikhil Devtha
|
|
6
|
+
Project-URL: Homepage, https://github.com/ItsNikhil123/panditor
|
|
7
|
+
Requires-Python: >=3.8
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Requires-Dist: pandas
|
|
11
|
+
Dynamic: license-file
|
|
12
|
+
|
|
13
|
+
# Imputation Utils
|
|
14
|
+
|
|
15
|
+
A small utility package to compare missing value imputation results in pandas.
|
|
16
|
+
|
|
17
|
+
## Installation
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
pip install panditor
|
panditor-0.1.0/README.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import pandas as pd
|
|
2
|
+
|
|
3
|
+
def compare_imputation(df_before, df_after, column_name):
|
|
4
|
+
missing_indices = {
|
|
5
|
+
col: df_before[df_before[col].isnull()].index.to_list()
|
|
6
|
+
for col in df_before.columns
|
|
7
|
+
if df_before[col].isnull().any()
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
if column_name not in missing_indices:
|
|
11
|
+
print(f"No missing values were found in column '{column_name}'")
|
|
12
|
+
return None
|
|
13
|
+
|
|
14
|
+
idx_list = missing_indices[column_name]
|
|
15
|
+
|
|
16
|
+
comparison = pd.DataFrame({
|
|
17
|
+
"Before": df_before.loc[idx_list, column_name],
|
|
18
|
+
"After": df_after.loc[idx_list, column_name],
|
|
19
|
+
})
|
|
20
|
+
|
|
21
|
+
print(f"Changes in column : {column_name}")
|
|
22
|
+
return comparison
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: panditor
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Utilities for comparing missing value imputations in pandas DataFrames
|
|
5
|
+
Author: Nikhil Devtha
|
|
6
|
+
Project-URL: Homepage, https://github.com/ItsNikhil123/panditor
|
|
7
|
+
Requires-Python: >=3.8
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Requires-Dist: pandas
|
|
11
|
+
Dynamic: license-file
|
|
12
|
+
|
|
13
|
+
# Imputation Utils
|
|
14
|
+
|
|
15
|
+
A small utility package to compare missing value imputation results in pandas.
|
|
16
|
+
|
|
17
|
+
## Installation
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
pip install panditor
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
pandas
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
panditor
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61.0"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "panditor"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "Utilities for comparing missing value imputations in pandas DataFrames"
|
|
9
|
+
authors = [
|
|
10
|
+
{ name="Nikhil Devtha" }
|
|
11
|
+
]
|
|
12
|
+
readme = "README.md"
|
|
13
|
+
requires-python = ">=3.8"
|
|
14
|
+
dependencies = [
|
|
15
|
+
"pandas"
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
[project.urls]
|
|
19
|
+
"Homepage" = "https://github.com/ItsNikhil123/panditor"
|
panditor-0.1.0/setup.cfg
ADDED