tensortrade.feed.core.accessors module

class tensortrade.feed.core.accessors.CachedAccessor(name: str, accessor)[source]

Bases: object

Custom property-like object.

A descriptor for caching accessors.

Parameters:
  • name (str) – Namespace that will be accessed under, e.g. df.foo.
  • accessor (cls) – Class with the extension methods.

References

[1]https://github.com/pandas-dev/pandas/blob/v1.1.0/pandas/core/accessor.py#L285-L289