python import pandas as pd data = {'A': [1, 2, 3], 'B': [4, 5, 6]} df = pd.DataFrame(data, dtype={'A': 'int64', 'B': 'float64'}) 注意这里dtype参数的值是字符串,表示数据类型。 如果你能提供更多的上下文或代码示例,我可以提供更具体的帮助。
@martindurantdigging a little into the error I see that inside the loop all cols seem to be not REQUIRED :/ I am not sure how to interpret that (maybe because on the top level there exists an optional field and subsequently all children fields get tagged as OPTIONAL?); the schema Defini...