fix bulk error for table method (#407)
### What problem does this PR solve? Issue link:#366 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
f12f30bb7b
commit
800b5c7aaa
@ -223,8 +223,8 @@ def chunk(filename, binary=None, from_page=0, to_page=10000000000,
|
|||||||
continue
|
continue
|
||||||
if not str(row[clmns[j]]):
|
if not str(row[clmns[j]]):
|
||||||
continue
|
continue
|
||||||
#if pd.isna(row[clmns[j]]):
|
if pd.isna(row[clmns[j]]):
|
||||||
# continue
|
continue
|
||||||
fld = clmns_map[j][0]
|
fld = clmns_map[j][0]
|
||||||
d[fld] = row[clmns[j]] if clmn_tys[j] != "text" else huqie.qie(
|
d[fld] = row[clmns[j]] if clmn_tys[j] != "text" else huqie.qie(
|
||||||
row[clmns[j]])
|
row[clmns[j]])
|
||||||
|
|||||||
@ -2,6 +2,7 @@ import re
|
|||||||
import json
|
import json
|
||||||
import time
|
import time
|
||||||
import copy
|
import copy
|
||||||
|
|
||||||
import elasticsearch
|
import elasticsearch
|
||||||
from elastic_transport import ConnectionTimeout
|
from elastic_transport import ConnectionTimeout
|
||||||
from elasticsearch import Elasticsearch
|
from elasticsearch import Elasticsearch
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user