KxSystems / pykx

PyKX is a Python first interface to the worlds fastest time-series database kdb+ and it's underlying vector programming language q.
https://code.kx.com/pykx
Other
45 stars 10 forks source link

Pandas API Addons: add_prefix and add_sufix #13

Closed marcosvm13 closed 7 months ago

marcosvm13 commented 7 months ago

Feature

What does this change introduce?

An implementation of the add_prefix and add_suffix function: https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.add_prefix.html https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.add_suffix.html#pandas.DataFrame.add_suffix

Note: In Pandas the index attribute does not change the result (only the columns are changed, not the indexes). In this implementation, prefixes or suffixes can be added to indexes in addition to columns.

General

Code

Testing

Documentation