Skip to content

Commit dceac70

Browse files
authored
Merge pull request #292 from niquedegraaff/patch-1
Update abstract.py: Set default dtype for Series instantiation
2 parents 9810940 + 06619b1 commit dceac70

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lightweight_charts/abstract.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ def update_from_tick(self, series: pd.Series, cumulative_volume: bool = False):
659659
f'Trying to update tick of time "{pd.to_datetime(series["time"])}", '
660660
f'which occurs before the last bar time of '
661661
f'"{pd.to_datetime(self._last_bar["time"])}".')
662-
bar = pd.Series()
662+
bar = pd.Series(dtype='float64')
663663
if series['time'] == self._last_bar['time']:
664664
bar = self._last_bar
665665
bar['high'] = max(self._last_bar['high'], series['price'])

0 commit comments

Comments
 (0)