Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/csbiology/deedleextensions
https://github.com/csbiology/deedleextensions
Last synced: 30 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/csbiology/deedleextensions
- Owner: CSBiology
- License: bsd-2-clause
- Created: 2020-09-02T14:10:05.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-03-24T16:37:04.000Z (almost 4 years ago)
- Last Synced: 2024-11-29T02:49:28.493Z (about 1 month ago)
- Language: F#
- Size: 29.3 KB
- Stars: 6
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DeedleExtensions
This repository contains additional functions for handling Deedle frames.
## Align
Especially the align function is a very handy tool, allowing easy and flexible multi key joining of two frames.
For each frame, a function is given to the function which maps the keys of both frames to shared keys. The two frames are then joined in a way, that all combinations of rows mapping to the same shared key are created.Let's say we have the two frames
#### frame1
Hometown
Frank Team1 -> Frankfurt
Barbara Team1 -> Stralsund
Alice Team2 -> Wonderland
Bruce Team2 -> Cranberra
#### frame2
Room
Team1 -> 28
Team2 -> 42We can join them over the shared teamName:
```F#
Frame.align snd id frame1 frame2
|> Frame.mapRowKeys (fun (team,(name,_),_) -> name,team)
```
Hometown Room
Frank Team1 -> Frankfurt 28
Barbara Team1 -> Stralsund 28
Alice Team2 -> Wonderland 42
Bruce Team2 -> Cranberra 42