Skip to content

Commit

Permalink
Update tushare.py (#339)
Browse files Browse the repository at this point in the history
* Update tushare.py

update concat method instead of  append

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
xumanda and pre-commit-ci[bot] authored Oct 8, 2024
1 parent 05670f8 commit 0224ec7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion meta/data_processors/tushare.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ def download_data(
# nonstandard_id = self.transfer_standard_ticker_to_nonstandard(i)
# df_temp = self.get_data(nonstandard_id)
df_temp = self.get_data(i)
self.dataframe = self.dataframe.append(df_temp)
self.dataframe = pd.concat(
[self.dataframe, df_temp], ignore_index=True
) # 20240905 updated self.dataframe = self.dataframe.append(df_temp)
# print("{} ok".format(i))
time.sleep(0.25)

Expand Down

0 comments on commit 0224ec7

Please sign in to comment.