-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow passing in pandas dataframes to x2sys_cross (#591)
Run crossover analysis directly on pandas.DataFrame inputs instead of having to write to tab-separated value (TSV) files first! Implemented by storing pandas.DataFrame data in a temporary file and passing this intermediate file to x2sys_cross. Need to do some file parsing to get the right file extension (suffix) for this to work. * Use tempfile_from_dftrack instead of tempfile_from_buffer * Don't use GMTTempFile, just generate random filename and write to it * Reduce git diff and make Windows tests pass by ignoring permission error * Test input two pandas dataframes to x2sys_cross with time column Renamed 'result' to 'table' to prevent pylint complaining about R0914: Too many local variables (16/15) (too-many-locals) * Improve docstring of x2sys_cross and tempfile_from_dftrack
- Loading branch information
Showing
2 changed files
with
104 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters