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 ADDED
File without changes
@@ -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,8 @@
1
+ # Imputation Utils
2
+
3
+ A small utility package to compare missing value imputation results in pandas.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ pip install panditor
@@ -0,0 +1,3 @@
1
+ from .compare import compare_imputation
2
+
3
+ __all__ = ["compare_imputation"]
@@ -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,10 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ panditor/__init__.py
5
+ panditor/compare.py
6
+ panditor.egg-info/PKG-INFO
7
+ panditor.egg-info/SOURCES.txt
8
+ panditor.egg-info/dependency_links.txt
9
+ panditor.egg-info/requires.txt
10
+ panditor.egg-info/top_level.txt
@@ -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"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+