
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
node-data-preprocessing
Advanced tools
A node package for data preprocessing.
The package exposes the individual steps, as well as one to the entire process.
var data = process.csvParser(options);
List of options with defaults -
var options = {
path: ''
};
String - The path to the data.
var extracted = process.extract(options, data);
List of options with defaults -
var options = {
useHeaders: 'true'
};
Boolean - Indicates whether the first row of data is the heading or not. Note - The heading will not be used in the process. Setting it to true simply strips the first row from the data.
var cleansed = process.cleanse(options, data);
List of options with defaults -
var options = {
formats: [],
ranges: []
};
Array - of strings representing the formats that the fields should be. The string should match the result of typeof() applied to the expected data format.
Array - of objects, such that { 'validatorName': 'validatorValue' }.
Available validators -
value, min, returns value > min;value, min, returns value >= min;value, max, returns value > max;value, max, returns value > max;value, range, where range is a string such that 'min-max', and returns greater(value, min) && less(value, max);value, range, where range is a string such that 'min-max', and returns greaterOrEqual(value, min) && lessOrEqual(value, max);var standardised = process.standardise(options, data);
List of options with defaults -
var options = {
min: 0.1,
max: 0.9,
standardisationMethod: 'default'
};
number - The minimum value for the standardisation.
number - The maximum value for the standardisation.
string - Can be default, normal or ss (Sum of Squares).
Array - of integers representing columns of the data to ignore while standardising. They will retain their non-standardised values.
var divided = process.divide(options, data);
List of options with defaults -
var options = {
split: [60, 20, 20]
};
Array - Indicates how many subsets the data should be split into, and with what weighting.
var result = process.process(options);
The combined proces takes all the options that the individual steps take, in one object.
var options = {
path: '',
useHeaders: true,
formats: [],
min: 0.1,
max: 0.9,
standardisationMethod: 'default',
split: [60, 20, 20]
};
FAQs
A node package for data preprocessing.
The npm package node-data-preprocessing receives a total of 3 weekly downloads. As such, node-data-preprocessing popularity was classified as not popular.
We found that node-data-preprocessing demonstrated a not healthy version release cadence and project activity because the last version was released 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.