Skip to content

Commit fe3e3ba

Browse files
author
Adam Robbins-Pianka
committed
Cast index to array to avoid pandas warning
1 parent da407f6 commit fe3e3ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qiita_db/metadata_template/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def prefix_sample_names_with_id(md_template, study_id):
113113
# Create a new column on the metadata template that includes the
114114
# metadata template indexes prefixed with the study id
115115
md_template['sample_name_with_id'] = (study_ids + '.' +
116-
md_template.index)
116+
np.array(md_template.index))
117117
md_template.index = md_template.sample_name_with_id
118118
del md_template['sample_name_with_id']
119119
# The original metadata template had the index column unnamed - remove

0 commit comments

Comments
 (0)