Skip to content

Commit

Permalink
0.9.24 updaate
Browse files Browse the repository at this point in the history
  • Loading branch information
zengbin93 committed Jul 16, 2023
1 parent 1ae9acb commit f87bc65
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions czsc/fsa/spreed_sheets.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"""
import string
import pandas as pd
from loguru import logger
from czsc.fsa.base import FeishuApiBase, request


Expand Down Expand Up @@ -277,6 +278,10 @@ def append(self, token, sheet_id, df: pd.DataFrame, batch_size=2000, overwrite=T
:param batch_size: 批次写入行数
:return: None
"""
if df.empty:
logger.warning("待写入的数据为空,不执行写入操作")
return

if overwrite:
self.delete_values(token, sheet_id)
cols = df.columns.tolist()
Expand Down

0 comments on commit f87bc65

Please sign in to comment.