Comments (1)
你的问题很好,我正打算周末补充一下readme,当你尝试更新数据时,可以使用to_es_dev
函数,其中
key_col
参数就是数据的唯一值对应的列名,这个function会判断是否存在对应的index,如果没有直接新建并写入数据,如果有调用update_to_es
function,从es中分批次取出数据,检查数据是否变化,如有变化根据查出的_id进行更新操作,没有变化的数据不进行任何处理,新增的数据进行写入操作。
from es_pandas.
Related Issues (20)
- How to implement pagination support through the library ? HOT 1
- ModuleNotFoundError: No module named 'progressbar' HOT 1
- User credentials HOT 1
- _op_type='update' not working HOT 2
- Disable progress bar on to_es HOT 2
- to_es error with show_progress=False HOT 1
- How to implement authentication support through the library ? HOT 1
- Version check fails using SNAPSHOT HOT 1
- Unable to upload array as value
- Something wrong when you run template code HOT 3
- to_pandas sql error HOT 4
- sql_query fetch size HOT 9
- elasticsearch.exceptions.RequestError: RequestError(400, 'parsing_exception', 'request does not support [_source]') HOT 1
- 在to_pandas函数中,set_index应该在设置dtype以后,否则通过dtype重置'_id'类型会失败 HOT 2
- 支持将多个具有相同映射关系index中的数据导入一个DataFrame HOT 1
- 如果不显示进度,应不计算index中的文档数
- to_pandas报错 None of ['_id'] are in the columns HOT 1
- Any ways to force push all columns as string? HOT 3
- AttributeError: module 'progressbar' has no attribute '__version__' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from es_pandas.