justinzm/gopup

外商直接投资数据(FDI),api 出现语法错误

luyifanlu opened this issue · 2 comments

df_index = gp.get_fdi_data()
print(df_index)
368 data_df['当月(亿元)'] = data_df['当月(亿元)'].map(lambda x: int(x)/100000) --> 369 data_df['累计(亿元)'] = data_df['累计(亿元)'].map(lambda x: int(x)/100000)
ValueError: invalid literal for int() with base 10: ''

实验一下源码,发现出现none,建议填充下

嗯 下个版本加入判断