npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

panel-data

v0.0.4

Published

The panel-data npm package provides a PanelData object designed to store and manage panel-data formatted data. It supports efficient manipulation and analysis of time-series cross-sectional datasets, commonly used in supply chain management, logistics, an

Downloads

13

Readme

panel-data

npm version npm downloads Bundle Size Install Size

🚧 Work in Progress 🚧

This module is currently under active development, and I am working hard to roll out new features in the coming weeks.

Find Details on what to expect on GitHub issues and Wiki

Stay tuned for updates and thank you for your patience and support as I continue to improve this package.

Overview

panel-data provides a PanelData object designed to store and manage panel-data style data. It supports efficient manipulation and analysis of time-series cross-sectional datasets, commonly used in supply chain management, logistics, and other domains requiring structured, row or column-oriented data handling.

Installation

npm install panel-data

Example Usage

Right now, you can use the PanelData and Series classes to store and manipulate data in a format similar to pandas DataFrames and Series in Python.

const PanelData = require('./panel-data');
const Series = require('./series');

// Create a few Series objects
const observations = new Series([7, 6, 8, 7], { name: 'Observations', index: [1, 2, 3, 4] });
const day = new Series(['Monday', 'Tuesday', 'Wednesday', 'Thursday'], { name: 'Day', index: [1, 2, 3, 4] });
const conditionsMet = new Series([true, true, false, true], { name: 'Conditions Met', index: [1, 2, 3, 4] });

// Create a PanelData object from an array of Series objects
const panelData = new PanelData([observations, day, conditionsMet]);

// Access some useful information
console.log(panelData.columns); // ['Observations', 'Day', 'Conditions Met']
console.log(panelData.index);   // [1, 2, 3, 4]
console.log(panelData.shape);   // [4, 3]
console.log(panelData.dtypes.toArray()); // ['int32', 'object', 'boolean']

// Get a summary of the data
console.log(panelData.info);

// Convert the PanelData back to a regular JavaScript object
console.log(panelData.toJSON);

// Count non-null values in each series
console.log(panelData.countNonNull.toArray()); // [4, 4, 4]

see the GitHub Wiki for full documentation.

Help Improve – Your Feedback Matters! 🚀

I'm committed to making this npm package the best it can be, and need your input to do it! If this package was useful, met your expectations, or if it fell short in some way, I'd love to hear from you. Your feedback will help me understand what's working and what features are in demand.

👉 Click here or scan the QR code to give feedback in less than 60 seconds – your insights will directly influence future updates and features. Thank you for your insights! 🙌

QR Code

Release Notes

Check out the Release Notes

Contributing

Interested in contributing? See how to contribute, I'd love your help.

License

This project is licensed under the MIT License. See the LICENSE file for details.

To-Do

See the To-Do list or submit your own feature requests on GitHub Issues