dashaub / espandas Goto Github PK
View Code? Open in Web Editor NEWReading and writing pandas DataFrames in Elasticsearch
License: GNU General Public License v3.0
Reading and writing pandas DataFrames in Elasticsearch
License: GNU General Public License v3.0
Greetings, I was testing your software. Congratulations it looks very functional, However there are problems with the most recent versions of pandas since reindex_axis is no longer avaible in pandas 1.1.3 I will try to make a correction if I get sometime. In the mean time I report this bug and people that may use this code should consider runing a specific version of pandas.
Using a pandas 0.25.3 dataframe the following error occurs:
File "/home/x/anaconda3/envs/x/lib/python3.7/site-packages/espandas/espandas.py", line 82, in es_write
df = df.reindex_axis(sorted(df.columns), axis=1)
File "/home/x/anaconda3/envs/x/lib/python3.7/site-packages/pandas/core/generic.py", line 5179, in getattr
return object.getattribute(self, name)
AttributeError: 'DataFrame' object has no attribute 'reindex_axis'
Deprecated since version 0.21.0: Use reindex instead.
see:
https://pandas.pydata.org/pandas-docs/version/0.24/reference/api/pandas.DataFrame.reindex_axis.html
Hello,
I have an issue when I tried to visualize my data into kibana after upload it in ElasticSearch through this package. My numeric fields are converted in str because of line 83 espandas.py file.
I have implemented a quick solution : delete this line and replace na by a string : 'Unknown'
I am working on a better solution : create a mapping and pass it as arg when index is created.
What do you think of these solutions? Are you interested by my contribution to your project?
Kevin
Hello,
i would like to know how to create a connection with espandas like this:
elk = Elasticsearch([{
'host': '192.168.0.100',
'port': '9200'
}], http_auth=('elastic', 'changeme'))
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.