mirror of
https://github.com/elastic/eland.git
synced 2025-07-11 00:02:14 +08:00
Import __version__ and other metadata by name
This commit is contained in:
parent
790e2b0de8
commit
03582b9f5e
@ -14,7 +14,16 @@
|
|||||||
|
|
||||||
# flake8: noqa
|
# flake8: noqa
|
||||||
|
|
||||||
from eland._version import *
|
from eland._version import (
|
||||||
|
__title__,
|
||||||
|
__description__,
|
||||||
|
__url__,
|
||||||
|
__version__,
|
||||||
|
__author__,
|
||||||
|
__author_email__,
|
||||||
|
__maintainer__,
|
||||||
|
__maintainer_email__,
|
||||||
|
)
|
||||||
from eland.common import *
|
from eland.common import *
|
||||||
from eland.client import *
|
from eland.client import *
|
||||||
from eland.filter import *
|
from eland.filter import *
|
||||||
|
@ -250,18 +250,18 @@ class DataFrame(NDFrame):
|
|||||||
>>> df = ed.DataFrame('localhost', 'flights', columns=['Origin', 'Dest'])
|
>>> df = ed.DataFrame('localhost', 'flights', columns=['Origin', 'Dest'])
|
||||||
>>> df.tail()
|
>>> df.tail()
|
||||||
Origin \\
|
Origin \\
|
||||||
13054 Pisa International Airport
|
13054 Pisa International Airport...
|
||||||
13055 Winnipeg / James Armstrong Richardson International Airport
|
13055 Winnipeg / James Armstrong Richardson International Airport...
|
||||||
13056 Licenciado Benito Juarez International Airport
|
13056 Licenciado Benito Juarez International Airport...
|
||||||
13057 Itami Airport
|
13057 Itami Airport...
|
||||||
13058 Adelaide International Airport
|
13058 Adelaide International Airport...
|
||||||
<BLANKLINE>
|
<BLANKLINE>
|
||||||
Dest
|
Dest...
|
||||||
13054 Xi'an Xianyang International Airport
|
13054 Xi'an Xianyang International Airport...
|
||||||
13055 Zurich Airport
|
13055 Zurich Airport...
|
||||||
13056 Ukrainka Air Base
|
13056 Ukrainka Air Base...
|
||||||
13057 Ministro Pistarini International Airport
|
13057 Ministro Pistarini International Airport...
|
||||||
13058 Washington Dulles International Airport
|
13058 Washington Dulles International Airport...
|
||||||
<BLANKLINE>
|
<BLANKLINE>
|
||||||
[5 rows x 2 columns]
|
[5 rows x 2 columns]
|
||||||
"""
|
"""
|
||||||
@ -609,8 +609,8 @@ class DataFrame(NDFrame):
|
|||||||
<class 'eland.dataframe.DataFrame'>
|
<class 'eland.dataframe.DataFrame'>
|
||||||
Index: 4675 entries, 0 to 4674
|
Index: 4675 entries, 0 to 4674
|
||||||
Data columns (total 2 columns):
|
Data columns (total 2 columns):
|
||||||
# Column Non-Null Count Dtype
|
# Column Non-Null Count Dtype...
|
||||||
--- ------ -------------- -----
|
--- ------ -------------- -----...
|
||||||
0 customer_first_name 4675 non-null object
|
0 customer_first_name 4675 non-null object
|
||||||
1 geoip.city_name 4094 non-null object
|
1 geoip.city_name 4094 non-null object
|
||||||
dtypes: object(2)
|
dtypes: object(2)
|
||||||
|
@ -20,7 +20,7 @@ def blacken(session):
|
|||||||
def lint(session):
|
def lint(session):
|
||||||
session.install("black", "flake8")
|
session.install("black", "flake8")
|
||||||
session.run("black", "--check", "--target-version=py36", *SOURCE_FILES)
|
session.run("black", "--check", "--target-version=py36", *SOURCE_FILES)
|
||||||
session.run("flake8", "--ignore=W291,E501,W503,E402,E712", *SOURCE_FILES)
|
session.run("flake8", "--ignore=E501,W503,E402,E712", *SOURCE_FILES)
|
||||||
|
|
||||||
|
|
||||||
@nox.session(python=["3.6", "3.7", "3.8"])
|
@nox.session(python=["3.6", "3.7", "3.8"])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user