我想从我的csv编写器(输出文件)中删除标头

时间:2019-04-09 02:29:23

标签: python python-3.x

我想从我的csv编写器(输出文件)中删除标题。不知道该怎么办。下面是我的代码:

db.Basis.find({
  "content.classes.number": { "$exists": true }, 
  "$expr": { "$gt": [{ "$strLenCP": { "$arrayElemAt": ["$content.classes.number", 0] }}, 16 ] }
})

1 个答案:

答案 0 :(得分:0)

您正在传递输出数据列表。 第一个元素是CSV列标题。 Simply elide

            for data in dataOut[1:]:
相关问题