import pandas as pd
  • 1.
df = pd.read_csv(csv_file_path)
  • 1.

用 pandas 处理csv,报IndexError: iloc cannot enlarge its target object

竟然是因为csv表,没有完整的标题行。把标题行补充完整,就行了。哈哈哈哈哈