小编mvx*_*mvx的帖子

Replace values in multiple untitled columns to 0, 1, 2 depending on column

EDITED AS PER COMMENTS

Background: Here is what the current dataframe looks like. The row labels are information texts in original excel file. But I hope this small reproduction of data will be enough for a solution? Actual file has about 100 columns and 200 rows.

Column headers and Row #0 values are repeated with pattern shown below -- except the Sales or Validation text changes at every occurrence of column with an existing title.

One more column before sales …

dataframe python-3.x pandas

5
推荐指数
1
解决办法
95
查看次数

标签 统计

dataframe ×1

pandas ×1

python-3.x ×1