dataframe-toolkit 0.30.0__tar.gz → 0.30.1__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.
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/PKG-INFO +1 -1
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/pyproject.toml +1 -1
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/pyproject.toml.orig +1 -1
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/common/io.py +9 -6
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/README.md +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/__init__.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/cli.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/commands/__init__.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/commands/annotate_cmd.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/commands/append_cmd.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/commands/base.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/commands/binx_cmd.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/commands/box_cmd.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/commands/chi_cmd.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/commands/clean_cmd.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/commands/cleannames_cmd.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/commands/completion_cmd.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/commands/concat_cmd.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/commands/corr_cmd.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/commands/dataset_cmd.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/commands/describe_cmd.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/commands/eval_cmd.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/commands/explode_cmd.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/commands/fit_cmd.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/commands/forest_cmd.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/commands/func_cmd.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/commands/heatmap_cmd.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/commands/help.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/commands/hist_cmd.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/commands/implode_cmd.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/commands/info_cmd.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/commands/interp_cmd.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/commands/line_cmd.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/commands/locus_cmd.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/commands/manhattan_cmd.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/commands/melt_cmd.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/commands/merge_cmd.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/commands/pairs_cmd.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/commands/phewas_cmd.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/commands/pivot_cmd.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/commands/print_cmd.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/commands/qq_cmd.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/commands/query_cmd.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/commands/randvar_cmd.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/commands/sample_cmd.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/commands/scale_cmd.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/commands/scat_cmd.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/commands/segid_cmd.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/commands/skill_cmd.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/commands/split_cmd.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/commands/stat_cmd.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/commands/test_cmd.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/commands/transpose_cmd.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/commands/wstat_cmd.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/common/__init__.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/common/copula.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/common/docformats.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/common/evalfuncs.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/common/gwas.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/common/plot.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/common/seed.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/common/seq.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/common/stats.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/io.py +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/skills/dftk/SKILL.md +0 -0
- {dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/skills/dftk/references/snakemake.md +0 -0
|
@@ -820,9 +820,10 @@ class io:
|
|
|
820
820
|
na_group.add_argument(
|
|
821
821
|
"--dropna",
|
|
822
822
|
help=(
|
|
823
|
-
"Drop rows containing any NA value from the output
|
|
824
|
-
"
|
|
825
|
-
"command
|
|
823
|
+
"Drop rows containing any NA value from the output: only "
|
|
824
|
+
"the columns written count (after --drop / --select). "
|
|
825
|
+
"Applied after the command has run, so it does not change "
|
|
826
|
+
"what the command sees (use --prequery for that). For one column: "
|
|
826
827
|
"--postquery 'COL.notna()'; for 2 or missing: --postquery "
|
|
827
828
|
"'b == 2 or b.isna()' (b == 2 alone drops the missing rows)."
|
|
828
829
|
),
|
|
@@ -844,9 +845,6 @@ class io:
|
|
|
844
845
|
# Pre-output transformations (order matches original dfio.py) #
|
|
845
846
|
# ---------------------------------------------------------------- #
|
|
846
847
|
|
|
847
|
-
if getattr(args, "dropna", False):
|
|
848
|
-
df = df.dropna(axis=0, how="any")
|
|
849
|
-
|
|
850
848
|
# Rename columns
|
|
851
849
|
for item in getattr(args, "move", None) or []:
|
|
852
850
|
try:
|
|
@@ -966,6 +964,11 @@ class io:
|
|
|
966
964
|
except Exception as exc:
|
|
967
965
|
logging.error(f"--select failed: {exc}")
|
|
968
966
|
|
|
967
|
+
# Drop rows with a gap: after --drop / --select, so only the columns
|
|
968
|
+
# written out count
|
|
969
|
+
if getattr(args, "dropna", False):
|
|
970
|
+
df = df.dropna(axis=0, how="any").reset_index(drop=True)
|
|
971
|
+
|
|
969
972
|
# Deduplicate
|
|
970
973
|
dedup = getattr(args, "deduplicate", None)
|
|
971
974
|
if dedup is not None:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dataframe_toolkit-0.30.0 → dataframe_toolkit-0.30.1}/src/dftk/skills/dftk/references/snakemake.md
RENAMED
|
File without changes
|