From 6f2a740478e4a3adbfb7de902a781514393db52a Mon Sep 17 00:00:00 2001 From: Adam Robbins-Pianka Date: Fri, 15 May 2015 10:55:08 -0600 Subject: [PATCH] Cast index to array to avoid pandas warning Better way to get an array of the index Thanks @ElDeveloper! --- qiita_db/metadata_template/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qiita_db/metadata_template/util.py b/qiita_db/metadata_template/util.py index 1f7e5c9ac..ac33246a6 100644 --- a/qiita_db/metadata_template/util.py +++ b/qiita_db/metadata_template/util.py @@ -113,7 +113,7 @@ def prefix_sample_names_with_id(md_template, study_id): # Create a new column on the metadata template that includes the # metadata template indexes prefixed with the study id md_template['sample_name_with_id'] = (study_ids + '.' + - md_template.index) + md_template.index.values) md_template.index = md_template.sample_name_with_id del md_template['sample_name_with_id'] # The original metadata template had the index column unnamed - remove