PandaPy: A Wrapper Around Structured Arrays to Mimic ‘Structs’ in the C Language

2 Pages Posted: 8 Jun 2020

See all articles by Derek Snow

Derek Snow

The Alan Turing Institute; New York University (NYU) - Finance and Risk Engineering Department; University of Auckland

Date Written: May 13, 2020

Abstract

Similar to the original Pandas project, PandaPy is developed to improve the usability of python for finance. Structured data types are designed to be able to mimic ‘structs’ in the C language, and they share a similar memory layout. The biggest benefit of this approach is that NumPy directly maps onto a C structure definition, so the buffer containing the array content can be accessed directly within an appropriately written C program. This makes PandaPy a strong contender for high frequency trading on small-to-medium datasets. PandaPy currently houses more than 30 functions.

Keywords: Python, Pandas, Data Structure, Software, Finance, Economics, Latency, Memory, Structured, High Frequency Trading

JEL Classification: C65, C69, C87, C88

Suggested Citation

Snow, Derek, PandaPy: A Wrapper Around Structured Arrays to Mimic ‘Structs’ in the C Language (May 13, 2020). Available at SSRN: https://ssrn.com/abstract=3599639 or http://dx.doi.org/10.2139/ssrn.3599639

Derek Snow (Contact Author)

The Alan Turing Institute ( email )

British Library, 96 Euston Rd
London, NW1 2DB
United Kingdom

HOME PAGE: http://https://www.turing.ac.uk/

New York University (NYU) - Finance and Risk Engineering Department ( email )

6 Metrotech Center
New York, NY 11201
United States

University of Auckland ( email )

Private Bag 92019
Auckland Mail Centre
Auckland, 1142
New Zealand

Here is the Coronavirus
related research on SSRN

Paper statistics

Downloads
49
Abstract Views
268
PlumX Metrics