mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-23 12:50:22 +08:00
DOC: Add note about performance issue when updating.
This commit is contained in:
committed by
Eddie Hebert
parent
102cddb4cb
commit
a7818f853a
@@ -65,8 +65,14 @@ class RollingPanel(object):
|
||||
|
||||
new_buffer = self._create_buffer()
|
||||
# Copy old values we want to keep
|
||||
# .update() is pretty slow. Ideally we would be using
|
||||
# new_buffer.loc[non_nan_items, :, non_nan_cols] =
|
||||
# but this triggers a bug in Pandas 0.11. Update
|
||||
# this when 0.12 is released.
|
||||
# https://github.com/pydata/pandas/issues/3777
|
||||
new_buffer.update(
|
||||
self.buffer.loc[non_nan_items, :, non_nan_cols])
|
||||
|
||||
self.buffer = new_buffer
|
||||
|
||||
def add_frame(self, tick, frame):
|
||||
|
||||
Reference in New Issue
Block a user