Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 173a6e65 authored by PRUVOST Florent's avatar PRUVOST Florent
Browse files

get_result.py: fix how to append pandas series to dataframe using concat() instead of append()

parent eafd6c17
No related branches found
No related tags found
1 merge request!501Update docker environment, use shared runners, and plafrim for cuda/rocm
...@@ -11,7 +11,6 @@ ...@@ -11,7 +11,6 @@
# #
import pandas import pandas
import click import click
import csv
from elasticsearch import Elasticsearch from elasticsearch import Elasticsearch
@click.command() @click.command()
...@@ -57,7 +56,7 @@ def main( ...@@ -57,7 +56,7 @@ def main(
doc_data = doc_data.drop(labels=['Commit_date_chameleon', 'Commit_sha_chameleon', 'Commit_sha_guix', 'Commit_sha_guix_hpc', 'Commit_sha_guix_hpcnonfree']) doc_data = doc_data.drop(labels=['Commit_date_chameleon', 'Commit_sha_chameleon', 'Commit_sha_guix', 'Commit_sha_guix_hpc', 'Commit_sha_guix_hpcnonfree'])
# append the Series object to the DataFrame object # append the Series object to the DataFrame object
docs = docs.append(doc_data) docs = pandas.concat([docs, doc_data.to_frame().T])
docs = docs.astype({"Nmpi": int, "Nthread": int, "Ngpu": int, "P": int, "Q": int, "M": int, "N": int, "K": int}) docs = docs.astype({"Nmpi": int, "Nthread": int, "Ngpu": int, "P": int, "Q": int, "M": int, "N": int, "K": int})
docs = docs.rename(columns=str.lower) docs = docs.rename(columns=str.lower)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment