Skip to content

STYLE use force-grid-wrap in isort #39780

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Feb 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 7 additions & 1 deletion asv_bench/benchmarks/arithmetic.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@
import numpy as np

import pandas as pd
from pandas import DataFrame, Series, Timestamp, date_range, to_timedelta
from pandas import (
DataFrame,
Series,
Timestamp,
date_range,
to_timedelta,
)
import pandas._testing as tm
from pandas.core.algorithms import checked_add_with_arr

Expand Down
8 changes: 7 additions & 1 deletion asv_bench/benchmarks/ctors.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import numpy as np

from pandas import DatetimeIndex, Index, MultiIndex, Series, Timestamp
from pandas import (
DatetimeIndex,
Index,
MultiIndex,
Series,
Timestamp,
)

from .pandas_vb_common import tm

Expand Down
5 changes: 4 additions & 1 deletion asv_bench/benchmarks/dtypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
import pandas as pd
from pandas import DataFrame
import pandas._testing as tm
from pandas.api.types import is_extension_array_dtype, pandas_dtype
from pandas.api.types import (
is_extension_array_dtype,
pandas_dtype,
)

from .pandas_vb_common import (
datetime_dtypes,
Expand Down
13 changes: 11 additions & 2 deletions asv_bench/benchmarks/frame_ctor.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
import numpy as np

import pandas as pd
from pandas import DataFrame, MultiIndex, Series, Timestamp, date_range
from pandas import (
DataFrame,
MultiIndex,
Series,
Timestamp,
date_range,
)

from .pandas_vb_common import tm

try:
from pandas.tseries.offsets import Hour, Nano
from pandas.tseries.offsets import (
Hour,
Nano,
)
except ImportError:
# For compatibility with older versions
from pandas.core.datetools import * # noqa
Expand Down
10 changes: 9 additions & 1 deletion asv_bench/benchmarks/frame_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,15 @@

import numpy as np

from pandas import DataFrame, MultiIndex, NaT, Series, date_range, isnull, period_range
from pandas import (
DataFrame,
MultiIndex,
NaT,
Series,
date_range,
isnull,
period_range,
)

from .pandas_vb_common import tm

Expand Down
8 changes: 7 additions & 1 deletion asv_bench/benchmarks/gil.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import numpy as np

from pandas import DataFrame, Series, date_range, factorize, read_csv
from pandas import (
DataFrame,
Series,
date_range,
factorize,
read_csv,
)
from pandas.core.algorithms import take_nd

from .pandas_vb_common import tm
Expand Down
12 changes: 9 additions & 3 deletions asv_bench/benchmarks/inference.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
import numpy as np

from pandas import Series, to_numeric

from .pandas_vb_common import lib, tm
from pandas import (
Series,
to_numeric,
)

from .pandas_vb_common import (
lib,
tm,
)


class ToNumeric:
Expand Down
20 changes: 16 additions & 4 deletions asv_bench/benchmarks/io/csv.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
from io import BytesIO, StringIO
from io import (
BytesIO,
StringIO,
)
import random
import string

import numpy as np

from pandas import Categorical, DataFrame, date_range, read_csv, to_datetime

from ..pandas_vb_common import BaseIO, tm
from pandas import (
Categorical,
DataFrame,
date_range,
read_csv,
to_datetime,
)

from ..pandas_vb_common import (
BaseIO,
tm,
)


class ToCSV(BaseIO):
Expand Down
13 changes: 11 additions & 2 deletions asv_bench/benchmarks/io/excel.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,19 @@

import numpy as np
from odf.opendocument import OpenDocumentSpreadsheet
from odf.table import Table, TableCell, TableRow
from odf.table import (
Table,
TableCell,
TableRow,
)
from odf.text import P

from pandas import DataFrame, ExcelWriter, date_range, read_excel
from pandas import (
DataFrame,
ExcelWriter,
date_range,
read_excel,
)

from ..pandas_vb_common import tm

Expand Down
14 changes: 11 additions & 3 deletions asv_bench/benchmarks/io/hdf.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
import numpy as np

from pandas import DataFrame, HDFStore, date_range, read_hdf

from ..pandas_vb_common import BaseIO, tm
from pandas import (
DataFrame,
HDFStore,
date_range,
read_hdf,
)

from ..pandas_vb_common import (
BaseIO,
tm,
)


class HDFStoreDataFrame(BaseIO):
Expand Down
15 changes: 12 additions & 3 deletions asv_bench/benchmarks/io/json.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,18 @@

import numpy as np

from pandas import DataFrame, concat, date_range, read_json, timedelta_range

from ..pandas_vb_common import BaseIO, tm
from pandas import (
DataFrame,
concat,
date_range,
read_json,
timedelta_range,
)

from ..pandas_vb_common import (
BaseIO,
tm,
)


class ReadJSON(BaseIO):
Expand Down
13 changes: 10 additions & 3 deletions asv_bench/benchmarks/io/pickle.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
import numpy as np

from pandas import DataFrame, date_range, read_pickle

from ..pandas_vb_common import BaseIO, tm
from pandas import (
DataFrame,
date_range,
read_pickle,
)

from ..pandas_vb_common import (
BaseIO,
tm,
)


class Pickle(BaseIO):
Expand Down
7 changes: 6 additions & 1 deletion asv_bench/benchmarks/io/sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
import numpy as np
from sqlalchemy import create_engine

from pandas import DataFrame, date_range, read_sql_query, read_sql_table
from pandas import (
DataFrame,
date_range,
read_sql_query,
read_sql_table,
)

from ..pandas_vb_common import tm

Expand Down
13 changes: 10 additions & 3 deletions asv_bench/benchmarks/io/stata.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
import numpy as np

from pandas import DataFrame, date_range, read_stata

from ..pandas_vb_common import BaseIO, tm
from pandas import (
DataFrame,
date_range,
read_stata,
)

from ..pandas_vb_common import (
BaseIO,
tm,
)


class Stata(BaseIO):
Expand Down
10 changes: 9 additions & 1 deletion asv_bench/benchmarks/join_merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@

import numpy as np

from pandas import DataFrame, MultiIndex, Series, concat, date_range, merge, merge_asof
from pandas import (
DataFrame,
MultiIndex,
Series,
concat,
date_range,
merge,
merge_asof,
)

from .pandas_vb_common import tm

Expand Down
7 changes: 6 additions & 1 deletion asv_bench/benchmarks/multiindex_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@

import numpy as np

from pandas import DataFrame, MultiIndex, RangeIndex, date_range
from pandas import (
DataFrame,
MultiIndex,
RangeIndex,
date_range,
)

from .pandas_vb_common import tm

Expand Down
9 changes: 8 additions & 1 deletion asv_bench/benchmarks/period.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@
Period benchmarks with non-tslibs dependencies. See
benchmarks.tslibs.period for benchmarks that rely only on tslibs.
"""
from pandas import DataFrame, Period, PeriodIndex, Series, date_range, period_range
from pandas import (
DataFrame,
Period,
PeriodIndex,
Series,
date_range,
period_range,
)

from pandas.tseries.frequencies import to_offset

Expand Down
7 changes: 6 additions & 1 deletion asv_bench/benchmarks/plotting.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import matplotlib
import numpy as np

from pandas import DataFrame, DatetimeIndex, Series, date_range
from pandas import (
DataFrame,
DatetimeIndex,
Series,
date_range,
)

try:
from pandas.plotting import andrews_curves
Expand Down
16 changes: 13 additions & 3 deletions asv_bench/benchmarks/reindex.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
import numpy as np

from pandas import DataFrame, Index, MultiIndex, Series, date_range, period_range

from .pandas_vb_common import lib, tm
from pandas import (
DataFrame,
Index,
MultiIndex,
Series,
date_range,
period_range,
)

from .pandas_vb_common import (
lib,
tm,
)


class Reindex:
Expand Down
8 changes: 7 additions & 1 deletion asv_bench/benchmarks/reshape.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@
import numpy as np

import pandas as pd
from pandas import DataFrame, MultiIndex, date_range, melt, wide_to_long
from pandas import (
DataFrame,
MultiIndex,
date_range,
melt,
wide_to_long,
)
from pandas.api.types import CategoricalDtype


Expand Down
7 changes: 6 additions & 1 deletion asv_bench/benchmarks/series_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@

from pandas.compat.numpy import np_version_under1p20

from pandas import Categorical, NaT, Series, date_range
from pandas import (
Categorical,
NaT,
Series,
date_range,
)

from .pandas_vb_common import tm

Expand Down
6 changes: 5 additions & 1 deletion asv_bench/benchmarks/sparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
import scipy.sparse

import pandas as pd
from pandas import MultiIndex, Series, date_range
from pandas import (
MultiIndex,
Series,
date_range,
)
from pandas.arrays import SparseArray


Expand Down
6 changes: 5 additions & 1 deletion asv_bench/benchmarks/strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

import numpy as np

from pandas import Categorical, DataFrame, Series
from pandas import (
Categorical,
DataFrame,
Series,
)

from .pandas_vb_common import tm

Expand Down
Loading