DataFrame
Matlab impelementation of DataFrame/Pandas concept. I wanted to be able to customize the Matlab Table however I wanted, so I could extend the functionality. Plus, I find that Matlab's approach of having many functions floating around a bit hard to remember which functions you need for which data structures. Instead, I have wrapped the Matlab Table with a DataFrame class, which tries to stay out of the way as much as possible so we can leverage the Table as much as possible, while providing flexibility to extend it how we wish. Additionally, I have attached as methods to the DataFrame all of the existing functions that can operate on Tables, while providing some initial new ones. I'll likely add more methods over time to fill in where I see the Table lacking.
See the Github page for a basic walkthrough if its use. Please interact through Github for contributions/issues. I'll likely not check this page very often, if it all.
Use Cases:
One reason for doing this is that I'd like to show in the future how you could inherit from the generic DataFrame type, then perform type checking. So, if you require that an AddressBook table always be initialized with a name and address column, you could add that to a specialized subclass of DataFrame.
Note: There are some initial tests and example in the github repository.
Citation pour cette source
Nicholas (2024). DataFrame (https://github.com/rothnic/DataFrame), GitHub. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxCatégories
- MATLAB > Language Fundamentals > Data Types > Tables >
- MATLAB > Language Fundamentals > Data Types > Structures >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
@DataFrame
tests
examples
Les versions qui utilisent la branche GitHub par défaut ne peuvent pas être téléchargées
Version | Publié le | Notes de version | |
---|---|---|---|
1.1.0.0 | Updated project name |
|