pandas中set_index与reset_index
import pandas as pd# 创建示例data = { "a": ["bar", "bar", "foo", "foo"], "b": ["one", "two", "o