Skip to content

Commit

Permalink
Replace pandas append with concat
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen authored Aug 24, 2023
1 parent d2c461c commit db5d543
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .ci_support/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,13 @@ def download_existing_data(data_download):


def get_statistics(package_lst, repo, filename):
data_download = get_github_stats_url(repo=repo, filename=filename)
df_new = get_condaforge_contribution(package_lst=package_lst)
df_old = download_existing_data(data_download=data_download)
df_merge = df_old.append(df_new, sort=False)
df_merge.to_csv(filename)
pandas.concat([
download_existing_data(data_download=get_github_stats_url(
repo=repo,
filename=filename,
)),
get_condaforge_contribution(package_lst=package_lst),
], sort=False).to_csv(filename)


if __name__ == "__main__":
Expand Down

0 comments on commit db5d543

Please sign in to comment.