pandas ambigious hotfix
This commit is contained in:
2
.github/ISSUE_TEMPLATE/bug.yaml
vendored
2
.github/ISSUE_TEMPLATE/bug.yaml
vendored
@ -27,7 +27,7 @@ body:
|
|||||||
attributes:
|
attributes:
|
||||||
label: Reproducible Example
|
label: Reproducible Example
|
||||||
description: >
|
description: >
|
||||||
Please provide a minimal reproducible example, using generic (`ohlcv.csv`) data where applicable which demonstrates the current behaviour. The code should be complete and not require any further adjustments.
|
Please provide a minimal reproducible example, using generic (`ohlcv.csv`) data where applicable which demonstrates the current behaviour. The code should be complete and not require any further adjustments. DO NOT provide: Incomplete code, unnecessarily long code, code which requires access to a broker/API, or code which uses additional functions/classes/libraries. In almost ALL cases the example should not exceed 50 lines.
|
||||||
placeholder: >
|
placeholder: >
|
||||||
from lightweight_charts import Chart...
|
from lightweight_charts import Chart...
|
||||||
render: python
|
render: python
|
||||||
|
|||||||
@ -233,7 +233,7 @@ class SeriesCommon(Pane):
|
|||||||
series = self._series_datetime_format(series, exclude_lowercase=self.name)
|
series = self._series_datetime_format(series, exclude_lowercase=self.name)
|
||||||
if self.name in series.index:
|
if self.name in series.index:
|
||||||
series.rename({self.name: 'value'}, inplace=True)
|
series.rename({self.name: 'value'}, inplace=True)
|
||||||
if self._last_bar and series['time'] != self._last_bar['time']:
|
if self._last_bar is not None and series['time'] != self._last_bar['time']:
|
||||||
self.data.loc[self.data.index[-1]] = self._last_bar
|
self.data.loc[self.data.index[-1]] = self._last_bar
|
||||||
self.data = pd.concat([self.data, series.to_frame().T], ignore_index=True)
|
self.data = pd.concat([self.data, series.to_frame().T], ignore_index=True)
|
||||||
self._last_bar = series
|
self._last_bar = series
|
||||||
|
|||||||
2
setup.py
2
setup.py
@ -5,7 +5,7 @@ with open('README.md', 'r', encoding='utf-8') as f:
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='lightweight_charts',
|
name='lightweight_charts',
|
||||||
version='1.0.18.3',
|
version='1.0.18.5',
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
python_requires='>=3.8',
|
python_requires='>=3.8',
|
||||||
install_requires=[
|
install_requires=[
|
||||||
|
|||||||
Reference in New Issue
Block a user