
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
data-preprocessing
Advanced tools
A lightweight data preprocessing library for cleaning datasets—handles missing values, duplicates, and feature correlations with ease.
A flexible JavaScript data preprocessing library for cleaning datasets. Features include removing constant and duplicate columns, filtering columns based on numeric content, and dropping highly correlated features with configurable thresholds—ideal for preparing data for analysis and machine learning. It provides easy-to-use functions for:
✅ Handling missing values (imputation or row/column removal)
✅ Removing duplicate records
✅ Detecting & dropping highly correlated columns
✅ Scaling and normalizing numerical data
✅ Encoding categorical variables
💡 Perfect for developers working with structured datasets in JavaScript/Node.js.
The data preprocessing utility provides configurable options to clean and optimize your dataset before analysis or machine learning tasks. Below is a detailed explanation of each supported option:
numeric_threshold (default: 0.7)Specifies the minimum percentage of numeric values required for a column to be treated as a numeric feature. Columns that do not meet this threshold will be considered non-numeric and may be excluded from numeric-only operations (like correlation analysis).
number (between 0 and 1)numeric_threshold = 0.7, a column must have at least 70% numeric entries to be retained as numeric.remove_character_columns (default: true)Controls whether columns containing character or alphanumeric values are automatically removed.
true (default), such columns will be excluded during preprocessing.false, character/alphanumeric columns (and any rows containing them) will be retained.
remove_constant_columns (default: true)Enables automatic removal of constant columns — i.e., columns where all values are the same or contain only one unique value.
remove_duplicate_columns (default: true)Enables removal of columns that are exact duplicates of each other.
remove_correlated_columns (default: true)Activates the detection and removal of highly correlated features (based on Pearson correlation).
correlation_coefficient_magnitude (default: 0.8)Defines the threshold for high correlation between pairs of numeric columns. If the absolute value of the Pearson correlation coefficient between two columns exceeds this threshold, one of them will be removed.
number (between 0 and 1)correlation_coefficient_magnitude = 0.8, any pair of columns with correlation > 0.8 or < -0.8 will be considered redundant.preprocessDataset(data, {
numeric_threshold: 0.7,
remove_constant_columns: true,
remove_duplicate_columns: true,
remove_correlated_columns: true,
correlation_coefficient_magnitude: 0.8
});
This setup will:
FAQs
A lightweight data preprocessing library for cleaning datasets—handles missing values, duplicates, and feature correlations with ease.
We found that data-preprocessing demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.