From d6777eab0889a798e238da56f952cb663ed82f92 Mon Sep 17 00:00:00 2001 From: tp Date: Tue, 23 Apr 2019 20:01:31 +0200 Subject: [PATCH 1/3] remove '# -*- coding: utf-8 -*-' --- asv_bench/benchmarks/offset.py | 1 - doc/source/conf.py | 1 - pandas/_libs/__init__.py | 1 - pandas/_libs/algos.pyx | 2 -- pandas/_libs/groupby.pyx | 2 -- pandas/_libs/hashing.pyx | 1 - pandas/_libs/hashtable.pyx | 2 -- pandas/_libs/index.pyx | 1 - pandas/_libs/indexing.pyx | 3 --- pandas/_libs/internals.pyx | 2 -- pandas/_libs/interval.pyx | 1 - pandas/_libs/join.pyx | 2 -- pandas/_libs/lib.pyx | 1 - pandas/_libs/missing.pyx | 2 -- pandas/_libs/ops.pyx | 1 - pandas/_libs/properties.pyx | 2 -- pandas/_libs/reduction.pyx | 1 - pandas/_libs/reshape.pyx | 2 -- pandas/_libs/sparse.pyx | 1 - pandas/_libs/tslib.pyx | 1 - pandas/_libs/tslibs/__init__.py | 1 - pandas/_libs/tslibs/c_timestamp.pyx | 1 - pandas/_libs/tslibs/ccalendar.pyx | 1 - pandas/_libs/tslibs/conversion.pyx | 1 - pandas/_libs/tslibs/fields.pyx | 1 - pandas/_libs/tslibs/frequencies.pyx | 1 - pandas/_libs/tslibs/nattype.pyx | 2 -- pandas/_libs/tslibs/np_datetime.pyx | 2 -- pandas/_libs/tslibs/offsets.pyx | 2 -- pandas/_libs/tslibs/parsing.pyx | 1 - pandas/_libs/tslibs/period.pyx | 1 - pandas/_libs/tslibs/resolution.pyx | 2 -- pandas/_libs/tslibs/strptime.pyx | 1 - pandas/_libs/tslibs/timedeltas.pyx | 1 - pandas/_libs/tslibs/timestamps.pyx | 1 - pandas/_libs/tslibs/timezones.pyx | 1 - pandas/_libs/window.pyx | 1 - pandas/_libs/writers.pyx | 2 -- pandas/core/accessor.py | 1 - pandas/core/arrays/_ranges.py | 1 - pandas/core/arrays/datetimelike.py | 1 - pandas/core/arrays/datetimes.py | 1 - pandas/core/arrays/period.py | 1 - pandas/core/arrays/timedeltas.py | 1 - pandas/core/indexes/datetimelike.py | 1 - pandas/core/internals/__init__.py | 1 - pandas/core/internals/blocks.py | 1 - pandas/core/internals/concat.py | 1 - pandas/core/internals/managers.py | 1 - pandas/core/strings.py | 1 - pandas/io/formats/csvs.py | 1 - pandas/io/formats/format.py | 1 - pandas/io/formats/html.py | 1 - pandas/io/formats/latex.py | 1 - pandas/io/sql.py | 1 - pandas/tests/api/test_api.py | 1 - pandas/tests/api/test_types.py | 1 - pandas/tests/arithmetic/conftest.py | 1 - pandas/tests/arithmetic/test_datetime64.py | 1 - pandas/tests/arithmetic/test_numeric.py | 1 - pandas/tests/arithmetic/test_object.py | 1 - pandas/tests/arithmetic/test_period.py | 1 - pandas/tests/arithmetic/test_timedelta64.py | 1 - pandas/tests/arrays/categorical/common.py | 2 -- pandas/tests/arrays/categorical/test_analytics.py | 2 -- pandas/tests/arrays/categorical/test_api.py | 2 -- pandas/tests/arrays/categorical/test_constructors.py | 2 -- pandas/tests/arrays/categorical/test_dtypes.py | 1 - pandas/tests/arrays/categorical/test_indexing.py | 2 -- pandas/tests/arrays/categorical/test_missing.py | 1 - pandas/tests/arrays/categorical/test_operators.py | 1 - pandas/tests/arrays/categorical/test_repr.py | 2 -- pandas/tests/arrays/categorical/test_sorting.py | 2 -- pandas/tests/arrays/categorical/test_subclass.py | 2 -- pandas/tests/arrays/categorical/test_warnings.py | 2 -- pandas/tests/arrays/interval/test_interval.py | 1 - pandas/tests/arrays/test_datetimelike.py | 1 - pandas/tests/arrays/test_datetimes.py | 1 - pandas/tests/arrays/test_integer.py | 1 - pandas/tests/arrays/test_timedeltas.py | 2 -- pandas/tests/config/test_config.py | 1 - pandas/tests/config/test_localization.py | 1 - pandas/tests/dtypes/cast/test_construct_from_scalar.py | 2 -- pandas/tests/dtypes/cast/test_construct_ndarray.py | 2 -- pandas/tests/dtypes/cast/test_construct_object_arr.py | 2 -- pandas/tests/dtypes/cast/test_convert_objects.py | 2 -- pandas/tests/dtypes/cast/test_downcast.py | 2 -- pandas/tests/dtypes/cast/test_find_common_type.py | 2 -- pandas/tests/dtypes/cast/test_infer_datetimelike.py | 2 -- pandas/tests/dtypes/cast/test_infer_dtype.py | 2 -- pandas/tests/dtypes/cast/test_upcast.py | 2 -- pandas/tests/dtypes/test_common.py | 2 -- pandas/tests/dtypes/test_concat.py | 2 -- pandas/tests/dtypes/test_dtypes.py | 1 - pandas/tests/dtypes/test_generic.py | 2 -- pandas/tests/dtypes/test_inference.py | 2 -- pandas/tests/dtypes/test_missing.py | 2 -- pandas/tests/extension/test_external_block.py | 1 - pandas/tests/frame/test_alter_axes.py | 2 -- pandas/tests/frame/test_analytics.py | 2 -- pandas/tests/frame/test_api.py | 1 - pandas/tests/frame/test_apply.py | 2 -- pandas/tests/frame/test_arithmetic.py | 1 - pandas/tests/frame/test_axis_select_reindex.py | 2 -- pandas/tests/frame/test_block_internals.py | 2 -- pandas/tests/frame/test_combine_concat.py | 2 -- pandas/tests/frame/test_constructors.py | 2 -- pandas/tests/frame/test_convert_to.py | 2 -- pandas/tests/frame/test_dtypes.py | 2 -- pandas/tests/frame/test_duplicates.py | 2 -- pandas/tests/frame/test_indexing.py | 2 -- pandas/tests/frame/test_join.py | 2 -- pandas/tests/frame/test_missing.py | 2 -- pandas/tests/frame/test_mutate_columns.py | 2 -- pandas/tests/frame/test_nonunique_indexes.py | 2 -- pandas/tests/frame/test_operators.py | 2 -- pandas/tests/frame/test_quantile.py | 2 -- pandas/tests/frame/test_query_eval.py | 1 - pandas/tests/frame/test_rank.py | 1 - pandas/tests/frame/test_replace.py | 2 -- pandas/tests/frame/test_repr_info.py | 2 -- pandas/tests/frame/test_reshape.py | 2 -- pandas/tests/frame/test_sorting.py | 2 -- pandas/tests/frame/test_subclass.py | 2 -- pandas/tests/frame/test_timeseries.py | 2 -- pandas/tests/frame/test_timezones.py | 1 - pandas/tests/frame/test_to_csv.py | 2 -- pandas/tests/generic/test_frame.py | 1 - pandas/tests/generic/test_generic.py | 1 - pandas/tests/generic/test_series.py | 1 - pandas/tests/groupby/aggregate/test_aggregate.py | 2 -- pandas/tests/groupby/aggregate/test_cython.py | 2 -- pandas/tests/groupby/aggregate/test_other.py | 2 -- pandas/tests/groupby/test_bin_groupby.py | 2 -- pandas/tests/groupby/test_categorical.py | 1 - pandas/tests/groupby/test_counting.py | 1 - pandas/tests/groupby/test_filters.py | 1 - pandas/tests/groupby/test_groupby.py | 1 - pandas/tests/groupby/test_grouping.py | 2 -- pandas/tests/indexes/common.py | 2 -- pandas/tests/indexes/datetimes/test_arithmetic.py | 1 - pandas/tests/indexes/datetimes/test_scalar_compat.py | 1 - pandas/tests/indexes/datetimes/test_timezones.py | 1 - pandas/tests/indexes/multi/conftest.py | 2 -- pandas/tests/indexes/multi/test_analytics.py | 2 -- pandas/tests/indexes/multi/test_astype.py | 2 -- pandas/tests/indexes/multi/test_compat.py | 3 --- pandas/tests/indexes/multi/test_constructor.py | 2 -- pandas/tests/indexes/multi/test_contains.py | 2 -- pandas/tests/indexes/multi/test_conversion.py | 2 -- pandas/tests/indexes/multi/test_copy.py | 2 -- pandas/tests/indexes/multi/test_drop.py | 3 --- pandas/tests/indexes/multi/test_duplicates.py | 2 -- pandas/tests/indexes/multi/test_equivalence.py | 2 -- pandas/tests/indexes/multi/test_format.py | 3 --- pandas/tests/indexes/multi/test_get_set.py | 3 --- pandas/tests/indexes/multi/test_indexing.py | 3 --- pandas/tests/indexes/multi/test_integrity.py | 2 -- pandas/tests/indexes/multi/test_join.py | 3 --- pandas/tests/indexes/multi/test_missing.py | 2 -- pandas/tests/indexes/multi/test_monotonic.py | 2 -- pandas/tests/indexes/multi/test_names.py | 2 -- pandas/tests/indexes/multi/test_reindex.py | 2 -- pandas/tests/indexes/multi/test_reshape.py | 3 --- pandas/tests/indexes/multi/test_set_ops.py | 2 -- pandas/tests/indexes/multi/test_sorting.py | 1 - pandas/tests/indexes/period/test_arithmetic.py | 2 -- pandas/tests/indexes/period/test_astype.py | 2 -- pandas/tests/indexes/period/test_scalar_compat.py | 1 - pandas/tests/indexes/test_base.py | 2 -- pandas/tests/indexes/test_category.py | 2 -- pandas/tests/indexes/test_numeric.py | 2 -- pandas/tests/indexes/test_range.py | 2 -- pandas/tests/indexes/timedeltas/test_arithmetic.py | 2 -- pandas/tests/indexes/timedeltas/test_formats.py | 2 -- pandas/tests/indexes/timedeltas/test_scalar_compat.py | 1 - pandas/tests/indexing/multiindex/test_indexing_slow.py | 2 -- pandas/tests/indexing/test_callable.py | 1 - pandas/tests/indexing/test_categorical.py | 2 -- pandas/tests/indexing/test_coercion.py | 2 -- pandas/tests/indexing/test_floats.py | 2 -- pandas/tests/indexing/test_indexing.py | 1 - pandas/tests/indexing/test_indexing_slow.py | 2 -- pandas/tests/internals/test_internals.py | 1 - pandas/tests/io/formats/test_format.py | 2 -- pandas/tests/io/formats/test_printing.py | 1 - pandas/tests/io/formats/test_to_csv.py | 2 -- pandas/tests/io/formats/test_to_html.py | 2 -- pandas/tests/io/json/test_pandas.py | 1 - pandas/tests/io/json/test_readlines.py | 1 - pandas/tests/io/json/test_ujson.py | 2 -- pandas/tests/io/parser/test_c_parser_only.py | 2 -- pandas/tests/io/parser/test_comment.py | 2 -- pandas/tests/io/parser/test_common.py | 2 -- pandas/tests/io/parser/test_compression.py | 2 -- pandas/tests/io/parser/test_converters.py | 2 -- pandas/tests/io/parser/test_dialect.py | 2 -- pandas/tests/io/parser/test_dtypes.py | 2 -- pandas/tests/io/parser/test_header.py | 2 -- pandas/tests/io/parser/test_index_col.py | 2 -- pandas/tests/io/parser/test_mangle_dupes.py | 2 -- pandas/tests/io/parser/test_multi_thread.py | 2 -- pandas/tests/io/parser/test_na_values.py | 2 -- pandas/tests/io/parser/test_network.py | 2 -- pandas/tests/io/parser/test_parse_dates.py | 2 -- pandas/tests/io/parser/test_python_parser_only.py | 2 -- pandas/tests/io/parser/test_quoting.py | 2 -- pandas/tests/io/parser/test_read_fwf.py | 2 -- pandas/tests/io/parser/test_skiprows.py | 2 -- pandas/tests/io/parser/test_textreader.py | 2 -- pandas/tests/io/parser/test_unsupported.py | 2 -- pandas/tests/io/parser/test_usecols.py | 2 -- pandas/tests/io/test_clipboard.py | 1 - pandas/tests/io/test_stata.py | 1 - pandas/tests/reductions/test_reductions.py | 1 - pandas/tests/reductions/test_stat_reductions.py | 1 - pandas/tests/reshape/test_melt.py | 1 - pandas/tests/reshape/test_pivot.py | 2 -- pandas/tests/reshape/test_reshape.py | 1 - pandas/tests/scalar/timedelta/test_arithmetic.py | 1 - pandas/tests/scalar/timedelta/test_construction.py | 1 - pandas/tests/scalar/timedelta/test_formats.py | 1 - pandas/tests/scalar/timestamp/test_arithmetic.py | 1 - pandas/tests/scalar/timestamp/test_comparisons.py | 1 - pandas/tests/scalar/timestamp/test_rendering.py | 2 -- pandas/tests/scalar/timestamp/test_timezones.py | 1 - pandas/tests/scalar/timestamp/test_unary_ops.py | 1 - pandas/tests/series/test_api.py | 2 +- pandas/tests/series/test_arithmetic.py | 1 - pandas/tests/series/test_block_internals.py | 2 -- pandas/tests/series/test_rank.py | 1 - pandas/tests/series/test_timezones.py | 1 - pandas/tests/sparse/test_format.py | 1 - pandas/tests/sparse/test_groupby.py | 1 - pandas/tests/test_algos.py | 2 -- pandas/tests/test_base.py | 1 - pandas/tests/test_common.py | 2 -- pandas/tests/test_compat.py | 1 - pandas/tests/test_downstream.py | 1 - pandas/tests/test_errors.py | 2 -- pandas/tests/test_expressions.py | 1 - pandas/tests/test_join.py | 2 -- pandas/tests/test_lib.py | 2 -- pandas/tests/test_multilevel.py | 1 - pandas/tests/test_nanops.py | 1 - pandas/tests/test_strings.py | 1 - pandas/tests/test_take.py | 1 - pandas/tests/tseries/offsets/__init__.py | 2 +- pandas/tests/tseries/offsets/common.py | 1 - pandas/tests/tseries/offsets/test_fiscal.py | 1 - pandas/tests/tseries/offsets/test_offsets_properties.py | 1 - pandas/tests/tseries/offsets/test_ticks.py | 1 - pandas/tests/tseries/offsets/test_yqm_offsets.py | 1 - pandas/tests/tslibs/test_api.py | 1 - pandas/tests/tslibs/test_array_to_datetime.py | 1 - pandas/tests/tslibs/test_ccalendar.py | 1 - pandas/tests/tslibs/test_conversion.py | 2 -- pandas/tests/tslibs/test_libfrequencies.py | 2 -- pandas/tests/tslibs/test_liboffsets.py | 1 - pandas/tests/tslibs/test_normalize_date.py | 1 - pandas/tests/tslibs/test_parse_iso8601.py | 1 - pandas/tests/tslibs/test_parsing.py | 1 - pandas/tests/tslibs/test_period_asfreq.py | 2 -- pandas/tests/tslibs/test_timedeltas.py | 1 - pandas/tests/tslibs/test_timezones.py | 1 - pandas/tests/util/test_assert_almost_equal.py | 2 -- pandas/tests/util/test_assert_categorical_equal.py | 2 -- pandas/tests/util/test_assert_extension_array_equal.py | 2 -- pandas/tests/util/test_assert_frame_equal.py | 2 -- pandas/tests/util/test_assert_index_equal.py | 2 -- pandas/tests/util/test_assert_interval_array_equal.py | 2 -- pandas/tests/util/test_assert_numpy_array_equal.py | 2 -- pandas/tests/util/test_assert_series_equal.py | 2 -- pandas/tests/util/test_deprecate_kwarg.py | 1 - pandas/tests/util/test_move.py | 1 - pandas/tests/util/test_safe_import.py | 1 - pandas/tests/util/test_util.py | 1 - pandas/tests/util/test_validate_args.py | 1 - pandas/tests/util/test_validate_args_and_kwargs.py | 1 - pandas/tests/util/test_validate_kwargs.py | 1 - pandas/tseries/frequencies.py | 1 - pandas/tseries/offsets.py | 1 - scripts/find_commits_touching_func.py | 1 - 283 files changed, 2 insertions(+), 438 deletions(-) diff --git a/asv_bench/benchmarks/offset.py b/asv_bench/benchmarks/offset.py index 6811e3c9841e9..26e344758596f 100644 --- a/asv_bench/benchmarks/offset.py +++ b/asv_bench/benchmarks/offset.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import warnings from datetime import datetime diff --git a/doc/source/conf.py b/doc/source/conf.py index 3e639b887fd5a..e7d358c7961ab 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # pandas documentation build configuration file, created by # diff --git a/pandas/_libs/__init__.py b/pandas/_libs/__init__.py index 7650baed09ad7..1f6042389416e 100644 --- a/pandas/_libs/__init__.py +++ b/pandas/_libs/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # flake8: noqa from .tslibs import ( diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx index 663411ad984c2..b4782fff151b4 100644 --- a/pandas/_libs/algos.pyx +++ b/pandas/_libs/algos.pyx @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import cython from cython import Py_ssize_t diff --git a/pandas/_libs/groupby.pyx b/pandas/_libs/groupby.pyx index 2498445e78fc3..8f662b57615f3 100644 --- a/pandas/_libs/groupby.pyx +++ b/pandas/_libs/groupby.pyx @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import cython from cython import Py_ssize_t from cython cimport floating diff --git a/pandas/_libs/hashing.pyx b/pandas/_libs/hashing.pyx index 21d6c5378e170..c0aa661266d29 100644 --- a/pandas/_libs/hashing.pyx +++ b/pandas/_libs/hashing.pyx @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Translated from the reference implementation # at https://github.com/veorq/SipHash diff --git a/pandas/_libs/hashtable.pyx b/pandas/_libs/hashtable.pyx index 8d0c451ad0ab8..544fb3d8a15c0 100644 --- a/pandas/_libs/hashtable.pyx +++ b/pandas/_libs/hashtable.pyx @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - cimport cython from cpython cimport (PyObject, Py_INCREF, diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx index fd53b065f81e5..b7c3e0e4cdd63 100644 --- a/pandas/_libs/index.pyx +++ b/pandas/_libs/index.pyx @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from datetime import datetime, timedelta, date import cython diff --git a/pandas/_libs/indexing.pyx b/pandas/_libs/indexing.pyx index af6e00bad7f6b..6e62978c8477f 100644 --- a/pandas/_libs/indexing.pyx +++ b/pandas/_libs/indexing.pyx @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- - - cdef class _NDFrameIndexerBase: """ A base class for _NDFrameIndexer for fast instantiation and attribute diff --git a/pandas/_libs/internals.pyx b/pandas/_libs/internals.pyx index f23d2666b4bf4..0d45897de859a 100644 --- a/pandas/_libs/internals.pyx +++ b/pandas/_libs/internals.pyx @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import cython from cython import Py_ssize_t diff --git a/pandas/_libs/interval.pyx b/pandas/_libs/interval.pyx index 173be9398b634..3bd186abc7d8a 100644 --- a/pandas/_libs/interval.pyx +++ b/pandas/_libs/interval.pyx @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import numbers from operator import le, lt diff --git a/pandas/_libs/join.pyx b/pandas/_libs/join.pyx index 503867058b3c8..faa7ab95fd28b 100644 --- a/pandas/_libs/join.pyx +++ b/pandas/_libs/join.pyx @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import cython from cython import Py_ssize_t diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx index d80cc482be5b3..abf33cd818b71 100644 --- a/pandas/_libs/lib.pyx +++ b/pandas/_libs/lib.pyx @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from decimal import Decimal from fractions import Fraction from numbers import Number diff --git a/pandas/_libs/missing.pyx b/pandas/_libs/missing.pyx index ab0e4cd6cc765..1d756115ebd5a 100644 --- a/pandas/_libs/missing.pyx +++ b/pandas/_libs/missing.pyx @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import cython from cython import Py_ssize_t diff --git a/pandas/_libs/ops.pyx b/pandas/_libs/ops.pyx index fb1d2e379958c..a86600ef6de9c 100644 --- a/pandas/_libs/ops.pyx +++ b/pandas/_libs/ops.pyx @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import operator from cpython cimport (PyObject_RichCompareBool, diff --git a/pandas/_libs/properties.pyx b/pandas/_libs/properties.pyx index d2fbf5aa66fbf..a8b430645b2eb 100644 --- a/pandas/_libs/properties.pyx +++ b/pandas/_libs/properties.pyx @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - from cython import Py_ssize_t from cpython cimport ( diff --git a/pandas/_libs/reduction.pyx b/pandas/_libs/reduction.pyx index 5df6e02d6a040..6c69f7669bee5 100644 --- a/pandas/_libs/reduction.pyx +++ b/pandas/_libs/reduction.pyx @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from distutils.version import LooseVersion from cython import Py_ssize_t diff --git a/pandas/_libs/reshape.pyx b/pandas/_libs/reshape.pyx index 9f4e67ca4e256..35b2ab4aa5326 100644 --- a/pandas/_libs/reshape.pyx +++ b/pandas/_libs/reshape.pyx @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import cython from cython import Py_ssize_t diff --git a/pandas/_libs/sparse.pyx b/pandas/_libs/sparse.pyx index 5471c8184e458..a15ec083b7123 100644 --- a/pandas/_libs/sparse.pyx +++ b/pandas/_libs/sparse.pyx @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import cython import numpy as np diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index e3961c5318b23..50e3fb1c38cc7 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import cython from cpython.datetime cimport (PyDateTime_Check, PyDate_Check, diff --git a/pandas/_libs/tslibs/__init__.py b/pandas/_libs/tslibs/__init__.py index 83f3542b42de1..21ba0ae06a036 100644 --- a/pandas/_libs/tslibs/__init__.py +++ b/pandas/_libs/tslibs/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # flake8: noqa from .conversion import normalize_date, localize_pydatetime diff --git a/pandas/_libs/tslibs/c_timestamp.pyx b/pandas/_libs/tslibs/c_timestamp.pyx index 30f3f1c24e607..6bf6b6dcea8dd 100644 --- a/pandas/_libs/tslibs/c_timestamp.pyx +++ b/pandas/_libs/tslibs/c_timestamp.pyx @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ _Timestamp is a c-defined subclass of datetime.datetime diff --git a/pandas/_libs/tslibs/ccalendar.pyx b/pandas/_libs/tslibs/ccalendar.pyx index 4db589c6c8a03..a82d5e3b58e5e 100644 --- a/pandas/_libs/tslibs/ccalendar.pyx +++ b/pandas/_libs/tslibs/ccalendar.pyx @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # cython: boundscheck=False """ Cython implementations of functions resembling the stdlib calendar module diff --git a/pandas/_libs/tslibs/conversion.pyx b/pandas/_libs/tslibs/conversion.pyx index 1309ee948f86a..17237a557443b 100644 --- a/pandas/_libs/tslibs/conversion.pyx +++ b/pandas/_libs/tslibs/conversion.pyx @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import cython import numpy as np diff --git a/pandas/_libs/tslibs/fields.pyx b/pandas/_libs/tslibs/fields.pyx index dfd8c86c92c86..4ebf5e587a727 100644 --- a/pandas/_libs/tslibs/fields.pyx +++ b/pandas/_libs/tslibs/fields.pyx @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ Functions for accessing attributes of Timestamp/datetime64/datetime-like objects and arrays diff --git a/pandas/_libs/tslibs/frequencies.pyx b/pandas/_libs/tslibs/frequencies.pyx index fb74fb08286a3..ae8b17a688716 100644 --- a/pandas/_libs/tslibs/frequencies.pyx +++ b/pandas/_libs/tslibs/frequencies.pyx @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import re cimport numpy as cnp diff --git a/pandas/_libs/tslibs/nattype.pyx b/pandas/_libs/tslibs/nattype.pyx index a81941da4a05a..7f35a11e57b71 100644 --- a/pandas/_libs/tslibs/nattype.pyx +++ b/pandas/_libs/tslibs/nattype.pyx @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - from cpython cimport ( PyObject_RichCompare, Py_GT, Py_GE, Py_EQ, Py_NE, Py_LT, Py_LE) diff --git a/pandas/_libs/tslibs/np_datetime.pyx b/pandas/_libs/tslibs/np_datetime.pyx index 000ec94901457..016206b0b69f0 100644 --- a/pandas/_libs/tslibs/np_datetime.pyx +++ b/pandas/_libs/tslibs/np_datetime.pyx @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - from cpython cimport Py_EQ, Py_NE, Py_GE, Py_GT, Py_LT, Py_LE from cpython.datetime cimport (datetime, date, diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index 9d5151f05b45b..d4cc67a0583e6 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import cython import time diff --git a/pandas/_libs/tslibs/parsing.pyx b/pandas/_libs/tslibs/parsing.pyx index f6f52efa951fe..027c8045440e1 100644 --- a/pandas/_libs/tslibs/parsing.pyx +++ b/pandas/_libs/tslibs/parsing.pyx @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ Parsing functions for datetime and datetime-like strings. """ diff --git a/pandas/_libs/tslibs/period.pyx b/pandas/_libs/tslibs/period.pyx index 624cad2bfa95a..3ff4af8f88a33 100644 --- a/pandas/_libs/tslibs/period.pyx +++ b/pandas/_libs/tslibs/period.pyx @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from datetime import datetime from cpython cimport ( diff --git a/pandas/_libs/tslibs/resolution.pyx b/pandas/_libs/tslibs/resolution.pyx index e02e2b3fe8f3d..3951e4452445d 100644 --- a/pandas/_libs/tslibs/resolution.pyx +++ b/pandas/_libs/tslibs/resolution.pyx @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import numpy as np from numpy cimport ndarray, int64_t, int32_t diff --git a/pandas/_libs/tslibs/strptime.pyx b/pandas/_libs/tslibs/strptime.pyx index 527d2da8e3182..1fd6e54e5a4a2 100644 --- a/pandas/_libs/tslibs/strptime.pyx +++ b/pandas/_libs/tslibs/strptime.pyx @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """Strptime-related classes and functions. """ import time diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx index 2a35a9c803834..3cafecb27adcf 100644 --- a/pandas/_libs/tslibs/timedeltas.pyx +++ b/pandas/_libs/tslibs/timedeltas.pyx @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import collections import textwrap import warnings diff --git a/pandas/_libs/tslibs/timestamps.pyx b/pandas/_libs/tslibs/timestamps.pyx index 7340e716ec651..2cb4d612aefba 100644 --- a/pandas/_libs/tslibs/timestamps.pyx +++ b/pandas/_libs/tslibs/timestamps.pyx @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import sys import warnings diff --git a/pandas/_libs/tslibs/timezones.pyx b/pandas/_libs/tslibs/timezones.pyx index fcf1b65d7b17a..cbfbc14c35b35 100644 --- a/pandas/_libs/tslibs/timezones.pyx +++ b/pandas/_libs/tslibs/timezones.pyx @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from datetime import timezone # dateutil compat diff --git a/pandas/_libs/window.pyx b/pandas/_libs/window.pyx index 29a21c06c064e..de755ca0245e6 100644 --- a/pandas/_libs/window.pyx +++ b/pandas/_libs/window.pyx @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # cython: boundscheck=False, wraparound=False, cdivision=True import cython diff --git a/pandas/_libs/writers.pyx b/pandas/_libs/writers.pyx index 8f035d0c205e3..d1aecf0a9d294 100644 --- a/pandas/_libs/writers.pyx +++ b/pandas/_libs/writers.pyx @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import cython from cython import Py_ssize_t diff --git a/pandas/core/accessor.py b/pandas/core/accessor.py index aeebe686c63cb..87d76415a9729 100644 --- a/pandas/core/accessor.py +++ b/pandas/core/accessor.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ accessor.py contains base classes for implementing accessor properties diff --git a/pandas/core/arrays/_ranges.py b/pandas/core/arrays/_ranges.py index 66c1b8e158672..4fbb8ae9f9aee 100644 --- a/pandas/core/arrays/_ranges.py +++ b/pandas/core/arrays/_ranges.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ Helper functions to generate range-like data for DatetimeArray (and possibly TimedeltaArray/PeriodArray) diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index 3288cef2ff8c8..38cad11b24da8 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from datetime import datetime, timedelta import operator from typing import Any, Sequence, Tuple, Type, Union diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py index 422880f7d0f7a..9e0548d741af1 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from datetime import datetime, time, timedelta import textwrap from typing import Union diff --git a/pandas/core/arrays/period.py b/pandas/core/arrays/period.py index e65b36067b89d..32f3d215b006f 100644 --- a/pandas/core/arrays/period.py +++ b/pandas/core/arrays/period.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from datetime import timedelta import operator from typing import Any, Callable, Optional, Sequence, Union diff --git a/pandas/core/arrays/timedeltas.py b/pandas/core/arrays/timedeltas.py index a4ab6866b1bd1..e09e546a423fc 100644 --- a/pandas/core/arrays/timedeltas.py +++ b/pandas/core/arrays/timedeltas.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from datetime import timedelta import textwrap import warnings diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py index 6fb26d3e88cae..60f3ce3ce7ad1 100644 --- a/pandas/core/indexes/datetimelike.py +++ b/pandas/core/indexes/datetimelike.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ Base and utility classes for tseries type pandas objects. """ diff --git a/pandas/core/internals/__init__.py b/pandas/core/internals/__init__.py index a662e1d3ae197..d24dd2edd4e1d 100644 --- a/pandas/core/internals/__init__.py +++ b/pandas/core/internals/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from .blocks import ( # noqa:F401 _block_shape, # io.pytables _safe_reshape, # io.packers diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 06440ff374c68..360f3ea23ec97 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from datetime import date, datetime, timedelta import functools import inspect diff --git a/pandas/core/internals/concat.py b/pandas/core/internals/concat.py index 8769c150f019b..d92c15e1d6f93 100644 --- a/pandas/core/internals/concat.py +++ b/pandas/core/internals/concat.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # TODO: Needs a better name; too many modules are already called "concat" from collections import defaultdict import copy diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py index 49fcb572e963b..7077b1556e7e8 100644 --- a/pandas/core/internals/managers.py +++ b/pandas/core/internals/managers.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from collections import defaultdict from functools import partial import itertools diff --git a/pandas/core/strings.py b/pandas/core/strings.py index aa0a01526cec5..f78997a506f94 100644 --- a/pandas/core/strings.py +++ b/pandas/core/strings.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import codecs import re import textwrap diff --git a/pandas/io/formats/csvs.py b/pandas/io/formats/csvs.py index 16032a1257ed4..120eb4612fc9b 100644 --- a/pandas/io/formats/csvs.py +++ b/pandas/io/formats/csvs.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ Module for formatting output data into CSV files. """ diff --git a/pandas/io/formats/format.py b/pandas/io/formats/format.py index 1a709421d49be..c8677dabf9261 100644 --- a/pandas/io/formats/format.py +++ b/pandas/io/formats/format.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ Internal module for formatting output data in csv, html, and latex files. This module also applies to display formatting. diff --git a/pandas/io/formats/html.py b/pandas/io/formats/html.py index 1573a720597d2..4997e1827592c 100644 --- a/pandas/io/formats/html.py +++ b/pandas/io/formats/html.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ Module for formatting output data in HTML. """ diff --git a/pandas/io/formats/latex.py b/pandas/io/formats/latex.py index 24853bf96a90a..33bc413e9c3fe 100644 --- a/pandas/io/formats/latex.py +++ b/pandas/io/formats/latex.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ Module for formatting output data in Latex. """ diff --git a/pandas/io/sql.py b/pandas/io/sql.py index 18c3ee1415df7..1e3fe2ade6ab7 100644 --- a/pandas/io/sql.py +++ b/pandas/io/sql.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ Collection of query wrappers / abstractions to both facilitate data retrieval and to reduce dependency on DB-specific API. diff --git a/pandas/tests/api/test_api.py b/pandas/tests/api/test_api.py index dddf7896fe398..7ee0225723675 100644 --- a/pandas/tests/api/test_api.py +++ b/pandas/tests/api/test_api.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import pandas as pd from pandas import api from pandas.util import testing as tm diff --git a/pandas/tests/api/test_types.py b/pandas/tests/api/test_types.py index 235d7ecc64f60..d6090225c0a7f 100644 --- a/pandas/tests/api/test_types.py +++ b/pandas/tests/api/test_types.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from pandas.api import types from pandas.util import testing as tm diff --git a/pandas/tests/arithmetic/conftest.py b/pandas/tests/arithmetic/conftest.py index 73b183d04c73c..c6547c32f3ce7 100644 --- a/pandas/tests/arithmetic/conftest.py +++ b/pandas/tests/arithmetic/conftest.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import numpy as np import pytest diff --git a/pandas/tests/arithmetic/test_datetime64.py b/pandas/tests/arithmetic/test_datetime64.py index 333c7c614db15..e383f47cf010d 100644 --- a/pandas/tests/arithmetic/test_datetime64.py +++ b/pandas/tests/arithmetic/test_datetime64.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Arithmetic tests for DataFrame/Series/Index/Array classes that should # behave identically. # Specifically for datetime64 and datetime64tz dtypes diff --git a/pandas/tests/arithmetic/test_numeric.py b/pandas/tests/arithmetic/test_numeric.py index 617974a8d3831..172c29b951001 100644 --- a/pandas/tests/arithmetic/test_numeric.py +++ b/pandas/tests/arithmetic/test_numeric.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Arithmetc tests for DataFrame/Series/Index/Array classes that should # behave identically. # Specifically for numeric dtypes diff --git a/pandas/tests/arithmetic/test_object.py b/pandas/tests/arithmetic/test_object.py index b5438b8eea10b..8d67e02d514ff 100644 --- a/pandas/tests/arithmetic/test_object.py +++ b/pandas/tests/arithmetic/test_object.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Arithmetc tests for DataFrame/Series/Index/Array classes that should # behave identically. # Specifically for object dtype diff --git a/pandas/tests/arithmetic/test_period.py b/pandas/tests/arithmetic/test_period.py index 81df0172c1807..935f6817dcb4c 100644 --- a/pandas/tests/arithmetic/test_period.py +++ b/pandas/tests/arithmetic/test_period.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Arithmetc tests for DataFrame/Series/Index/Array classes that should # behave identically. # Specifically for Period dtype diff --git a/pandas/tests/arithmetic/test_timedelta64.py b/pandas/tests/arithmetic/test_timedelta64.py index 8d2afe0b10d7f..c214a880345ae 100644 --- a/pandas/tests/arithmetic/test_timedelta64.py +++ b/pandas/tests/arithmetic/test_timedelta64.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Arithmetc tests for DataFrame/Series/Index/Array classes that should # behave identically. from datetime import datetime, timedelta diff --git a/pandas/tests/arrays/categorical/common.py b/pandas/tests/arrays/categorical/common.py index f1029b46ea017..cc4b53407107c 100644 --- a/pandas/tests/arrays/categorical/common.py +++ b/pandas/tests/arrays/categorical/common.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - from pandas import Categorical diff --git a/pandas/tests/arrays/categorical/test_analytics.py b/pandas/tests/arrays/categorical/test_analytics.py index 211b2e04b93cc..134b16d828746 100644 --- a/pandas/tests/arrays/categorical/test_analytics.py +++ b/pandas/tests/arrays/categorical/test_analytics.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import sys import numpy as np diff --git a/pandas/tests/arrays/categorical/test_api.py b/pandas/tests/arrays/categorical/test_api.py index 4e12eba805ab6..15e4bbab8f649 100644 --- a/pandas/tests/arrays/categorical/test_api.py +++ b/pandas/tests/arrays/categorical/test_api.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import numpy as np import pytest diff --git a/pandas/tests/arrays/categorical/test_constructors.py b/pandas/tests/arrays/categorical/test_constructors.py index 2c5a1facbd7cc..a28977a87de8d 100644 --- a/pandas/tests/arrays/categorical/test_constructors.py +++ b/pandas/tests/arrays/categorical/test_constructors.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - from datetime import datetime import numpy as np diff --git a/pandas/tests/arrays/categorical/test_dtypes.py b/pandas/tests/arrays/categorical/test_dtypes.py index a63266350404e..b8c223ab3b04e 100644 --- a/pandas/tests/arrays/categorical/test_dtypes.py +++ b/pandas/tests/arrays/categorical/test_dtypes.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import numpy as np import pytest diff --git a/pandas/tests/arrays/categorical/test_indexing.py b/pandas/tests/arrays/categorical/test_indexing.py index 337da2dbbca19..98f8ccb48c44b 100644 --- a/pandas/tests/arrays/categorical/test_indexing.py +++ b/pandas/tests/arrays/categorical/test_indexing.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import numpy as np import pytest diff --git a/pandas/tests/arrays/categorical/test_missing.py b/pandas/tests/arrays/categorical/test_missing.py index 5218299a80545..c73734e2c2280 100644 --- a/pandas/tests/arrays/categorical/test_missing.py +++ b/pandas/tests/arrays/categorical/test_missing.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import collections import numpy as np diff --git a/pandas/tests/arrays/categorical/test_operators.py b/pandas/tests/arrays/categorical/test_operators.py index 7b7678cdef777..dc6e1a5bc36b3 100644 --- a/pandas/tests/arrays/categorical/test_operators.py +++ b/pandas/tests/arrays/categorical/test_operators.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import operator import numpy as np diff --git a/pandas/tests/arrays/categorical/test_repr.py b/pandas/tests/arrays/categorical/test_repr.py index 0d06cdcd3e010..d4ae50dcdaa5d 100644 --- a/pandas/tests/arrays/categorical/test_repr.py +++ b/pandas/tests/arrays/categorical/test_repr.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import numpy as np from pandas import ( diff --git a/pandas/tests/arrays/categorical/test_sorting.py b/pandas/tests/arrays/categorical/test_sorting.py index 0c8ed7a31aeb6..26d8da3bf33f1 100644 --- a/pandas/tests/arrays/categorical/test_sorting.py +++ b/pandas/tests/arrays/categorical/test_sorting.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import numpy as np import pytest diff --git a/pandas/tests/arrays/categorical/test_subclass.py b/pandas/tests/arrays/categorical/test_subclass.py index f19ac006d39e7..a8f0a348b3ecc 100644 --- a/pandas/tests/arrays/categorical/test_subclass.py +++ b/pandas/tests/arrays/categorical/test_subclass.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - from pandas import Categorical import pandas.util.testing as tm diff --git a/pandas/tests/arrays/categorical/test_warnings.py b/pandas/tests/arrays/categorical/test_warnings.py index 71f587037cd66..79634f581f366 100644 --- a/pandas/tests/arrays/categorical/test_warnings.py +++ b/pandas/tests/arrays/categorical/test_warnings.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import pytest import pandas as pd diff --git a/pandas/tests/arrays/interval/test_interval.py b/pandas/tests/arrays/interval/test_interval.py index 30b4d0f89ae7e..34de36b4f6665 100644 --- a/pandas/tests/arrays/interval/test_interval.py +++ b/pandas/tests/arrays/interval/test_interval.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import numpy as np import pytest diff --git a/pandas/tests/arrays/test_datetimelike.py b/pandas/tests/arrays/test_datetimelike.py index 49eaab1cc0170..2f42ec5bae2b0 100644 --- a/pandas/tests/arrays/test_datetimelike.py +++ b/pandas/tests/arrays/test_datetimelike.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import numpy as np import pytest diff --git a/pandas/tests/arrays/test_datetimes.py b/pandas/tests/arrays/test_datetimes.py index 53dd960c86edb..1218527f6fd9b 100644 --- a/pandas/tests/arrays/test_datetimes.py +++ b/pandas/tests/arrays/test_datetimes.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ Tests for DatetimeArray """ diff --git a/pandas/tests/arrays/test_integer.py b/pandas/tests/arrays/test_integer.py index 4769f3842b08a..b88ba1cf01426 100644 --- a/pandas/tests/arrays/test_integer.py +++ b/pandas/tests/arrays/test_integer.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import numpy as np import pytest diff --git a/pandas/tests/arrays/test_timedeltas.py b/pandas/tests/arrays/test_timedeltas.py index e67227b1236ed..87f32ef101fa9 100644 --- a/pandas/tests/arrays/test_timedeltas.py +++ b/pandas/tests/arrays/test_timedeltas.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import numpy as np import pytest diff --git a/pandas/tests/config/test_config.py b/pandas/tests/config/test_config.py index 5131459495edd..7e0b22cb3b414 100644 --- a/pandas/tests/config/test_config.py +++ b/pandas/tests/config/test_config.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import warnings import pytest diff --git a/pandas/tests/config/test_localization.py b/pandas/tests/config/test_localization.py index 15556948ad9b8..c63465ff0c464 100644 --- a/pandas/tests/config/test_localization.py +++ b/pandas/tests/config/test_localization.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import codecs import locale import os diff --git a/pandas/tests/dtypes/cast/test_construct_from_scalar.py b/pandas/tests/dtypes/cast/test_construct_from_scalar.py index d0f58c811e34c..c8a35e692e2b7 100644 --- a/pandas/tests/dtypes/cast/test_construct_from_scalar.py +++ b/pandas/tests/dtypes/cast/test_construct_from_scalar.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - from pandas.core.dtypes.cast import construct_1d_arraylike_from_scalar from pandas.core.dtypes.dtypes import CategoricalDtype diff --git a/pandas/tests/dtypes/cast/test_construct_ndarray.py b/pandas/tests/dtypes/cast/test_construct_ndarray.py index aa2cb25e62d52..8653206be9156 100644 --- a/pandas/tests/dtypes/cast/test_construct_ndarray.py +++ b/pandas/tests/dtypes/cast/test_construct_ndarray.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import numpy as np import pytest diff --git a/pandas/tests/dtypes/cast/test_construct_object_arr.py b/pandas/tests/dtypes/cast/test_construct_object_arr.py index 61fc17880ed65..15277b198f675 100644 --- a/pandas/tests/dtypes/cast/test_construct_object_arr.py +++ b/pandas/tests/dtypes/cast/test_construct_object_arr.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import pytest from pandas.core.dtypes.cast import construct_1d_object_array_from_listlike diff --git a/pandas/tests/dtypes/cast/test_convert_objects.py b/pandas/tests/dtypes/cast/test_convert_objects.py index 58ba4161e96a9..45980dbd82736 100644 --- a/pandas/tests/dtypes/cast/test_convert_objects.py +++ b/pandas/tests/dtypes/cast/test_convert_objects.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import numpy as np import pytest diff --git a/pandas/tests/dtypes/cast/test_downcast.py b/pandas/tests/dtypes/cast/test_downcast.py index 41607c948b909..61aba9ed41f59 100644 --- a/pandas/tests/dtypes/cast/test_downcast.py +++ b/pandas/tests/dtypes/cast/test_downcast.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import numpy as np import pytest diff --git a/pandas/tests/dtypes/cast/test_find_common_type.py b/pandas/tests/dtypes/cast/test_find_common_type.py index d83c8d03e9e42..c48657bb272cc 100644 --- a/pandas/tests/dtypes/cast/test_find_common_type.py +++ b/pandas/tests/dtypes/cast/test_find_common_type.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import numpy as np import pytest diff --git a/pandas/tests/dtypes/cast/test_infer_datetimelike.py b/pandas/tests/dtypes/cast/test_infer_datetimelike.py index b2d63a6bfbd1c..3ff7b02b81342 100644 --- a/pandas/tests/dtypes/cast/test_infer_datetimelike.py +++ b/pandas/tests/dtypes/cast/test_infer_datetimelike.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import numpy as np import pytest diff --git a/pandas/tests/dtypes/cast/test_infer_dtype.py b/pandas/tests/dtypes/cast/test_infer_dtype.py index c7842ac591ed9..88c91243fcd74 100644 --- a/pandas/tests/dtypes/cast/test_infer_dtype.py +++ b/pandas/tests/dtypes/cast/test_infer_dtype.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - from datetime import date, datetime, timedelta import numpy as np diff --git a/pandas/tests/dtypes/cast/test_upcast.py b/pandas/tests/dtypes/cast/test_upcast.py index 074e89274cc88..8d5f21806cf46 100644 --- a/pandas/tests/dtypes/cast/test_upcast.py +++ b/pandas/tests/dtypes/cast/test_upcast.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import numpy as np import pytest diff --git a/pandas/tests/dtypes/test_common.py b/pandas/tests/dtypes/test_common.py index 3634b59047f76..c48fae5c26301 100644 --- a/pandas/tests/dtypes/test_common.py +++ b/pandas/tests/dtypes/test_common.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import numpy as np import pytest diff --git a/pandas/tests/dtypes/test_concat.py b/pandas/tests/dtypes/test_concat.py index d58f8ee3b74f1..3e26e0062b878 100644 --- a/pandas/tests/dtypes/test_concat.py +++ b/pandas/tests/dtypes/test_concat.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import pytest import pandas.core.dtypes.concat as _concat diff --git a/pandas/tests/dtypes/test_dtypes.py b/pandas/tests/dtypes/test_dtypes.py index 81da9072909c0..decd0091e2ce8 100644 --- a/pandas/tests/dtypes/test_dtypes.py +++ b/pandas/tests/dtypes/test_dtypes.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import re import numpy as np diff --git a/pandas/tests/dtypes/test_generic.py b/pandas/tests/dtypes/test_generic.py index f0642a0a9f1b9..e0590591c6899 100644 --- a/pandas/tests/dtypes/test_generic.py +++ b/pandas/tests/dtypes/test_generic.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - from warnings import catch_warnings import numpy as np diff --git a/pandas/tests/dtypes/test_inference.py b/pandas/tests/dtypes/test_inference.py index 3db958e2c64aa..47441dc49840d 100644 --- a/pandas/tests/dtypes/test_inference.py +++ b/pandas/tests/dtypes/test_inference.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - """ These the test the public routines exposed in types/common.py related to inference and not otherwise tested in types/test_common.py diff --git a/pandas/tests/dtypes/test_missing.py b/pandas/tests/dtypes/test_missing.py index 623e1f95c1897..64bfc050da02f 100644 --- a/pandas/tests/dtypes/test_missing.py +++ b/pandas/tests/dtypes/test_missing.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - from datetime import datetime from decimal import Decimal from warnings import catch_warnings, filterwarnings diff --git a/pandas/tests/extension/test_external_block.py b/pandas/tests/extension/test_external_block.py index 8743de0b18912..7f68babdb8aa5 100644 --- a/pandas/tests/extension/test_external_block.py +++ b/pandas/tests/extension/test_external_block.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import numpy as np import pytest diff --git a/pandas/tests/frame/test_alter_axes.py b/pandas/tests/frame/test_alter_axes.py index a0651d7fe6602..5e8c9f030d34c 100644 --- a/pandas/tests/frame/test_alter_axes.py +++ b/pandas/tests/frame/test_alter_axes.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - from datetime import datetime, timedelta import inspect diff --git a/pandas/tests/frame/test_analytics.py b/pandas/tests/frame/test_analytics.py index 57a1e8f5d675f..552bd61e8c8d9 100644 --- a/pandas/tests/frame/test_analytics.py +++ b/pandas/tests/frame/test_analytics.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - from datetime import timedelta import operator from string import ascii_lowercase diff --git a/pandas/tests/frame/test_api.py b/pandas/tests/frame/test_api.py index 66f99825abc58..b6419492b5b4b 100644 --- a/pandas/tests/frame/test_api.py +++ b/pandas/tests/frame/test_api.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from copy import deepcopy import pydoc diff --git a/pandas/tests/frame/test_apply.py b/pandas/tests/frame/test_apply.py index 1c1da2bdbcea6..5fab456a61234 100644 --- a/pandas/tests/frame/test_apply.py +++ b/pandas/tests/frame/test_apply.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - from collections import OrderedDict from datetime import datetime from itertools import chain diff --git a/pandas/tests/frame/test_arithmetic.py b/pandas/tests/frame/test_arithmetic.py index 877f0ed0201d3..061e0d32e1f06 100644 --- a/pandas/tests/frame/test_arithmetic.py +++ b/pandas/tests/frame/test_arithmetic.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from collections import deque from datetime import datetime import operator diff --git a/pandas/tests/frame/test_axis_select_reindex.py b/pandas/tests/frame/test_axis_select_reindex.py index f06d3d38e0a6d..c3f3b390895aa 100644 --- a/pandas/tests/frame/test_axis_select_reindex.py +++ b/pandas/tests/frame/test_axis_select_reindex.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - from datetime import datetime import numpy as np diff --git a/pandas/tests/frame/test_block_internals.py b/pandas/tests/frame/test_block_internals.py index bbb37dd842c55..56b2f00975c34 100644 --- a/pandas/tests/frame/test_block_internals.py +++ b/pandas/tests/frame/test_block_internals.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - from datetime import datetime, timedelta from io import StringIO import itertools diff --git a/pandas/tests/frame/test_combine_concat.py b/pandas/tests/frame/test_combine_concat.py index 7ffc70fa8edc5..1fbfefba9ff13 100644 --- a/pandas/tests/frame/test_combine_concat.py +++ b/pandas/tests/frame/test_combine_concat.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - from datetime import datetime import numpy as np diff --git a/pandas/tests/frame/test_constructors.py b/pandas/tests/frame/test_constructors.py index 695b5f88c0c12..f865ab68fb54f 100644 --- a/pandas/tests/frame/test_constructors.py +++ b/pandas/tests/frame/test_constructors.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - from collections import OrderedDict, abc from datetime import datetime, timedelta import functools diff --git a/pandas/tests/frame/test_convert_to.py b/pandas/tests/frame/test_convert_to.py index 67c449026a531..15c2d07214deb 100644 --- a/pandas/tests/frame/test_convert_to.py +++ b/pandas/tests/frame/test_convert_to.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - from collections import OrderedDict, abc, defaultdict from datetime import datetime diff --git a/pandas/tests/frame/test_dtypes.py b/pandas/tests/frame/test_dtypes.py index 9a10595a9f7ea..575eac68b111b 100644 --- a/pandas/tests/frame/test_dtypes.py +++ b/pandas/tests/frame/test_dtypes.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - from collections import OrderedDict from datetime import timedelta diff --git a/pandas/tests/frame/test_duplicates.py b/pandas/tests/frame/test_duplicates.py index 4b25aaf565ac8..9857e06745abf 100644 --- a/pandas/tests/frame/test_duplicates.py +++ b/pandas/tests/frame/test_duplicates.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import numpy as np import pytest diff --git a/pandas/tests/frame/test_indexing.py b/pandas/tests/frame/test_indexing.py index 53d920e116cd8..cba656a28d1b3 100644 --- a/pandas/tests/frame/test_indexing.py +++ b/pandas/tests/frame/test_indexing.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - from datetime import date, datetime, time, timedelta from warnings import catch_warnings, simplefilter diff --git a/pandas/tests/frame/test_join.py b/pandas/tests/frame/test_join.py index 2c9fde652493d..3adc62609cc6a 100644 --- a/pandas/tests/frame/test_join.py +++ b/pandas/tests/frame/test_join.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import numpy as np import pytest diff --git a/pandas/tests/frame/test_missing.py b/pandas/tests/frame/test_missing.py index d097f5e37e6b0..07cd162905d6f 100644 --- a/pandas/tests/frame/test_missing.py +++ b/pandas/tests/frame/test_missing.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import datetime import dateutil diff --git a/pandas/tests/frame/test_mutate_columns.py b/pandas/tests/frame/test_mutate_columns.py index 6c4f027b8fd5e..5184eb42c0ec7 100644 --- a/pandas/tests/frame/test_mutate_columns.py +++ b/pandas/tests/frame/test_mutate_columns.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import numpy as np import pytest diff --git a/pandas/tests/frame/test_nonunique_indexes.py b/pandas/tests/frame/test_nonunique_indexes.py index 88cabfbb929b5..3315b17336d7b 100644 --- a/pandas/tests/frame/test_nonunique_indexes.py +++ b/pandas/tests/frame/test_nonunique_indexes.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import numpy as np import pytest diff --git a/pandas/tests/frame/test_operators.py b/pandas/tests/frame/test_operators.py index 30383f7ff8426..95592f1ab3f0f 100644 --- a/pandas/tests/frame/test_operators.py +++ b/pandas/tests/frame/test_operators.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - from decimal import Decimal import operator diff --git a/pandas/tests/frame/test_quantile.py b/pandas/tests/frame/test_quantile.py index 0a1d9a7c0ec5a..a5771839e0997 100644 --- a/pandas/tests/frame/test_quantile.py +++ b/pandas/tests/frame/test_quantile.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import numpy as np import pytest diff --git a/pandas/tests/frame/test_query_eval.py b/pandas/tests/frame/test_query_eval.py index 7d5b3c9c67d8e..c05c7c4d18d13 100644 --- a/pandas/tests/frame/test_query_eval.py +++ b/pandas/tests/frame/test_query_eval.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from io import StringIO import operator diff --git a/pandas/tests/frame/test_rank.py b/pandas/tests/frame/test_rank.py index 3af625323118c..eed91850888fc 100644 --- a/pandas/tests/frame/test_rank.py +++ b/pandas/tests/frame/test_rank.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from datetime import datetime, timedelta import numpy as np diff --git a/pandas/tests/frame/test_replace.py b/pandas/tests/frame/test_replace.py index 20479f9a4fcbf..05019099b6fd6 100644 --- a/pandas/tests/frame/test_replace.py +++ b/pandas/tests/frame/test_replace.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - from datetime import datetime from io import StringIO import re diff --git a/pandas/tests/frame/test_repr_info.py b/pandas/tests/frame/test_repr_info.py index 1e2f87123a63d..f5ec4429c4df5 100644 --- a/pandas/tests/frame/test_repr_info.py +++ b/pandas/tests/frame/test_repr_info.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - from datetime import datetime, timedelta from io import StringIO import re diff --git a/pandas/tests/frame/test_reshape.py b/pandas/tests/frame/test_reshape.py index e2e21a8f50c41..a3b9e529431e5 100644 --- a/pandas/tests/frame/test_reshape.py +++ b/pandas/tests/frame/test_reshape.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - from datetime import datetime import itertools diff --git a/pandas/tests/frame/test_sorting.py b/pandas/tests/frame/test_sorting.py index 49e37d9ca24a3..98196e1ad12ae 100644 --- a/pandas/tests/frame/test_sorting.py +++ b/pandas/tests/frame/test_sorting.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import random import numpy as np diff --git a/pandas/tests/frame/test_subclass.py b/pandas/tests/frame/test_subclass.py index 3f6cec0bddafb..1e72140516182 100644 --- a/pandas/tests/frame/test_subclass.py +++ b/pandas/tests/frame/test_subclass.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import numpy as np import pytest diff --git a/pandas/tests/frame/test_timeseries.py b/pandas/tests/frame/test_timeseries.py index f1b52dfb383ca..bce9f70fdc20c 100644 --- a/pandas/tests/frame/test_timeseries.py +++ b/pandas/tests/frame/test_timeseries.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - from datetime import datetime, time from itertools import product diff --git a/pandas/tests/frame/test_timezones.py b/pandas/tests/frame/test_timezones.py index 4262162a7c3a4..0a4dee2bdd534 100644 --- a/pandas/tests/frame/test_timezones.py +++ b/pandas/tests/frame/test_timezones.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ Tests for DataFrame timezone-related methods """ diff --git a/pandas/tests/frame/test_to_csv.py b/pandas/tests/frame/test_to_csv.py index 20623d98d7ef3..481b257425f93 100644 --- a/pandas/tests/frame/test_to_csv.py +++ b/pandas/tests/frame/test_to_csv.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import csv from io import StringIO import os diff --git a/pandas/tests/generic/test_frame.py b/pandas/tests/generic/test_frame.py index f075682ac19f1..4646c7c9196a3 100644 --- a/pandas/tests/generic/test_frame.py +++ b/pandas/tests/generic/test_frame.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from copy import deepcopy from distutils.version import LooseVersion from operator import methodcaller diff --git a/pandas/tests/generic/test_generic.py b/pandas/tests/generic/test_generic.py index 87eb1cfe9ec57..e6d9851b1bb99 100644 --- a/pandas/tests/generic/test_generic.py +++ b/pandas/tests/generic/test_generic.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from copy import copy, deepcopy import numpy as np diff --git a/pandas/tests/generic/test_series.py b/pandas/tests/generic/test_series.py index 9c30814ee6cab..e29622cb8ac17 100644 --- a/pandas/tests/generic/test_series.py +++ b/pandas/tests/generic/test_series.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from distutils.version import LooseVersion from operator import methodcaller diff --git a/pandas/tests/groupby/aggregate/test_aggregate.py b/pandas/tests/groupby/aggregate/test_aggregate.py index ae8ed8db0aa5d..66ea5ac244398 100644 --- a/pandas/tests/groupby/aggregate/test_aggregate.py +++ b/pandas/tests/groupby/aggregate/test_aggregate.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - """ test .agg behavior / note that .apply is tested generally in test_groupby.py """ diff --git a/pandas/tests/groupby/aggregate/test_cython.py b/pandas/tests/groupby/aggregate/test_cython.py index 8d7d3df2d14ba..c2f98b11bb33e 100644 --- a/pandas/tests/groupby/aggregate/test_cython.py +++ b/pandas/tests/groupby/aggregate/test_cython.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - """ test cython .agg behavior """ diff --git a/pandas/tests/groupby/aggregate/test_other.py b/pandas/tests/groupby/aggregate/test_other.py index cca215588f230..02d8c09bf2c8f 100644 --- a/pandas/tests/groupby/aggregate/test_other.py +++ b/pandas/tests/groupby/aggregate/test_other.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - """ test all other .agg behavior """ diff --git a/pandas/tests/groupby/test_bin_groupby.py b/pandas/tests/groupby/test_bin_groupby.py index afa4df21e21e9..18bb9315b68c4 100644 --- a/pandas/tests/groupby/test_bin_groupby.py +++ b/pandas/tests/groupby/test_bin_groupby.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import numpy as np from numpy import nan import pytest diff --git a/pandas/tests/groupby/test_categorical.py b/pandas/tests/groupby/test_categorical.py index c876700cabea4..112f7629d735a 100644 --- a/pandas/tests/groupby/test_categorical.py +++ b/pandas/tests/groupby/test_categorical.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from datetime import datetime import numpy as np diff --git a/pandas/tests/groupby/test_counting.py b/pandas/tests/groupby/test_counting.py index e83f8e5216cae..2dd26bac1e102 100644 --- a/pandas/tests/groupby/test_counting.py +++ b/pandas/tests/groupby/test_counting.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from itertools import product import numpy as np diff --git a/pandas/tests/groupby/test_filters.py b/pandas/tests/groupby/test_filters.py index 6640d9c13e16c..52c4654ae8c73 100644 --- a/pandas/tests/groupby/test_filters.py +++ b/pandas/tests/groupby/test_filters.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import numpy as np import pytest diff --git a/pandas/tests/groupby/test_groupby.py b/pandas/tests/groupby/test_groupby.py index 31b602e38c4ad..3204dd51facf9 100644 --- a/pandas/tests/groupby/test_groupby.py +++ b/pandas/tests/groupby/test_groupby.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from collections import OrderedDict, defaultdict from datetime import datetime from decimal import Decimal diff --git a/pandas/tests/groupby/test_grouping.py b/pandas/tests/groupby/test_grouping.py index 013c370899de1..999bc282e1280 100644 --- a/pandas/tests/groupby/test_grouping.py +++ b/pandas/tests/groupby/test_grouping.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - """ test where we are determining what we are grouping, or getting groups """ import numpy as np diff --git a/pandas/tests/indexes/common.py b/pandas/tests/indexes/common.py index 660eb244b3cfc..71d1e686f5c02 100644 --- a/pandas/tests/indexes/common.py +++ b/pandas/tests/indexes/common.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import numpy as np import pytest diff --git a/pandas/tests/indexes/datetimes/test_arithmetic.py b/pandas/tests/indexes/datetimes/test_arithmetic.py index b7f411143a111..e998f77582c85 100644 --- a/pandas/tests/indexes/datetimes/test_arithmetic.py +++ b/pandas/tests/indexes/datetimes/test_arithmetic.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from datetime import datetime import pytest diff --git a/pandas/tests/indexes/datetimes/test_scalar_compat.py b/pandas/tests/indexes/datetimes/test_scalar_compat.py index 985b5676640bf..ae14396c75398 100644 --- a/pandas/tests/indexes/datetimes/test_scalar_compat.py +++ b/pandas/tests/indexes/datetimes/test_scalar_compat.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ Tests for DatetimeIndex methods behaving like their Timestamp counterparts """ diff --git a/pandas/tests/indexes/datetimes/test_timezones.py b/pandas/tests/indexes/datetimes/test_timezones.py index 86ec8d2d6d1e3..5ee5512737557 100644 --- a/pandas/tests/indexes/datetimes/test_timezones.py +++ b/pandas/tests/indexes/datetimes/test_timezones.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ Tests for DatetimeIndex timezone-related methods """ diff --git a/pandas/tests/indexes/multi/conftest.py b/pandas/tests/indexes/multi/conftest.py index 7fb862c69f5b2..956d2e6cc17e3 100644 --- a/pandas/tests/indexes/multi/conftest.py +++ b/pandas/tests/indexes/multi/conftest.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import numpy as np import pytest diff --git a/pandas/tests/indexes/multi/test_analytics.py b/pandas/tests/indexes/multi/test_analytics.py index 7b8165ce295ec..f89e082c7b06f 100644 --- a/pandas/tests/indexes/multi/test_analytics.py +++ b/pandas/tests/indexes/multi/test_analytics.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import numpy as np import pytest diff --git a/pandas/tests/indexes/multi/test_astype.py b/pandas/tests/indexes/multi/test_astype.py index c77b23c740094..5ee44fde730d7 100644 --- a/pandas/tests/indexes/multi/test_astype.py +++ b/pandas/tests/indexes/multi/test_astype.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import numpy as np import pytest diff --git a/pandas/tests/indexes/multi/test_compat.py b/pandas/tests/indexes/multi/test_compat.py index 199ad68283e5d..bd194cab8e204 100644 --- a/pandas/tests/indexes/multi/test_compat.py +++ b/pandas/tests/indexes/multi/test_compat.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- - - import numpy as np import pytest diff --git a/pandas/tests/indexes/multi/test_constructor.py b/pandas/tests/indexes/multi/test_constructor.py index 8cbeb36170a56..639e6aee87c6f 100644 --- a/pandas/tests/indexes/multi/test_constructor.py +++ b/pandas/tests/indexes/multi/test_constructor.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - from collections import OrderedDict import numpy as np diff --git a/pandas/tests/indexes/multi/test_contains.py b/pandas/tests/indexes/multi/test_contains.py index 56836b94a6b03..4b6934d445fd0 100644 --- a/pandas/tests/indexes/multi/test_contains.py +++ b/pandas/tests/indexes/multi/test_contains.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import numpy as np import pytest diff --git a/pandas/tests/indexes/multi/test_conversion.py b/pandas/tests/indexes/multi/test_conversion.py index e1aedf77c4d29..877904a91b953 100644 --- a/pandas/tests/indexes/multi/test_conversion.py +++ b/pandas/tests/indexes/multi/test_conversion.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - from collections import OrderedDict import numpy as np diff --git a/pandas/tests/indexes/multi/test_copy.py b/pandas/tests/indexes/multi/test_copy.py index aaf2fe1cb635f..17e81a348f186 100644 --- a/pandas/tests/indexes/multi/test_copy.py +++ b/pandas/tests/indexes/multi/test_copy.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - from copy import copy, deepcopy import pytest diff --git a/pandas/tests/indexes/multi/test_drop.py b/pandas/tests/indexes/multi/test_drop.py index 5a4594dce8d66..e13dd1d4ef233 100644 --- a/pandas/tests/indexes/multi/test_drop.py +++ b/pandas/tests/indexes/multi/test_drop.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- - - import numpy as np import pytest diff --git a/pandas/tests/indexes/multi/test_duplicates.py b/pandas/tests/indexes/multi/test_duplicates.py index 73e1ce16e9e3e..b1eff00d07484 100644 --- a/pandas/tests/indexes/multi/test_duplicates.py +++ b/pandas/tests/indexes/multi/test_duplicates.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - from itertools import product import numpy as np diff --git a/pandas/tests/indexes/multi/test_equivalence.py b/pandas/tests/indexes/multi/test_equivalence.py index 58ceefc175bb9..8003c1e3af5ec 100644 --- a/pandas/tests/indexes/multi/test_equivalence.py +++ b/pandas/tests/indexes/multi/test_equivalence.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import numpy as np import pytest diff --git a/pandas/tests/indexes/multi/test_format.py b/pandas/tests/indexes/multi/test_format.py index 721de77171c1e..f6edb1d722321 100644 --- a/pandas/tests/indexes/multi/test_format.py +++ b/pandas/tests/indexes/multi/test_format.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- - - import warnings import pytest diff --git a/pandas/tests/indexes/multi/test_get_set.py b/pandas/tests/indexes/multi/test_get_set.py index de4f4320fe83f..e07f1ce7c4e92 100644 --- a/pandas/tests/indexes/multi/test_get_set.py +++ b/pandas/tests/indexes/multi/test_get_set.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- - - import numpy as np import pytest diff --git a/pandas/tests/indexes/multi/test_indexing.py b/pandas/tests/indexes/multi/test_indexing.py index e32fa97574155..5a975acdf14a4 100644 --- a/pandas/tests/indexes/multi/test_indexing.py +++ b/pandas/tests/indexes/multi/test_indexing.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- - - from datetime import timedelta import numpy as np diff --git a/pandas/tests/indexes/multi/test_integrity.py b/pandas/tests/indexes/multi/test_integrity.py index 6eccc92004d93..f27218f7523ac 100644 --- a/pandas/tests/indexes/multi/test_integrity.py +++ b/pandas/tests/indexes/multi/test_integrity.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import re import numpy as np diff --git a/pandas/tests/indexes/multi/test_join.py b/pandas/tests/indexes/multi/test_join.py index 9e6c947e6470c..ea26f210daaf6 100644 --- a/pandas/tests/indexes/multi/test_join.py +++ b/pandas/tests/indexes/multi/test_join.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- - - import numpy as np import pytest diff --git a/pandas/tests/indexes/multi/test_missing.py b/pandas/tests/indexes/multi/test_missing.py index cd4adfa96ef54..ed90f74d80989 100644 --- a/pandas/tests/indexes/multi/test_missing.py +++ b/pandas/tests/indexes/multi/test_missing.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import numpy as np import pytest diff --git a/pandas/tests/indexes/multi/test_monotonic.py b/pandas/tests/indexes/multi/test_monotonic.py index 72e9bcc1e2eb1..a160dc2678157 100644 --- a/pandas/tests/indexes/multi/test_monotonic.py +++ b/pandas/tests/indexes/multi/test_monotonic.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import numpy as np import pytest diff --git a/pandas/tests/indexes/multi/test_names.py b/pandas/tests/indexes/multi/test_names.py index 1f67b3bb5d9fb..4785e1590b75d 100644 --- a/pandas/tests/indexes/multi/test_names.py +++ b/pandas/tests/indexes/multi/test_names.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import pytest import pandas as pd diff --git a/pandas/tests/indexes/multi/test_reindex.py b/pandas/tests/indexes/multi/test_reindex.py index 341ef82c538a8..6f13a374f6cc9 100644 --- a/pandas/tests/indexes/multi/test_reindex.py +++ b/pandas/tests/indexes/multi/test_reindex.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import numpy as np import pytest diff --git a/pandas/tests/indexes/multi/test_reshape.py b/pandas/tests/indexes/multi/test_reshape.py index 92564a20c301b..87a2751631fe6 100644 --- a/pandas/tests/indexes/multi/test_reshape.py +++ b/pandas/tests/indexes/multi/test_reshape.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- - - import numpy as np import pytest diff --git a/pandas/tests/indexes/multi/test_set_ops.py b/pandas/tests/indexes/multi/test_set_ops.py index 41a0e1e59e8a5..640e121d32b3a 100644 --- a/pandas/tests/indexes/multi/test_set_ops.py +++ b/pandas/tests/indexes/multi/test_set_ops.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import numpy as np import pytest diff --git a/pandas/tests/indexes/multi/test_sorting.py b/pandas/tests/indexes/multi/test_sorting.py index 1a81318e06d8d..b9bd7ebe4ee1c 100644 --- a/pandas/tests/indexes/multi/test_sorting.py +++ b/pandas/tests/indexes/multi/test_sorting.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import numpy as np import pytest diff --git a/pandas/tests/indexes/period/test_arithmetic.py b/pandas/tests/indexes/period/test_arithmetic.py index 226b8994aa328..d41e33a241141 100644 --- a/pandas/tests/indexes/period/test_arithmetic.py +++ b/pandas/tests/indexes/period/test_arithmetic.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import numpy as np import pytest diff --git a/pandas/tests/indexes/period/test_astype.py b/pandas/tests/indexes/period/test_astype.py index 3b3cc43eafdd3..bcf1109358d22 100644 --- a/pandas/tests/indexes/period/test_astype.py +++ b/pandas/tests/indexes/period/test_astype.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import numpy as np import pytest diff --git a/pandas/tests/indexes/period/test_scalar_compat.py b/pandas/tests/indexes/period/test_scalar_compat.py index 92be4519cdefc..ac01b4aad81c9 100644 --- a/pandas/tests/indexes/period/test_scalar_compat.py +++ b/pandas/tests/indexes/period/test_scalar_compat.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """Tests for PeriodIndex behaving like a vectorized Period scalar""" from pandas import Timedelta, date_range, period_range diff --git a/pandas/tests/indexes/test_base.py b/pandas/tests/indexes/test_base.py index 04d4cada13e11..73a3895164910 100644 --- a/pandas/tests/indexes/test_base.py +++ b/pandas/tests/indexes/test_base.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - from collections import defaultdict from datetime import datetime, timedelta from io import StringIO diff --git a/pandas/tests/indexes/test_category.py b/pandas/tests/indexes/test_category.py index e6a66802d071c..d38fa20a9335c 100644 --- a/pandas/tests/indexes/test_category.py +++ b/pandas/tests/indexes/test_category.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import numpy as np import pytest diff --git a/pandas/tests/indexes/test_numeric.py b/pandas/tests/indexes/test_numeric.py index 1011539b1bde2..c61e0fa6d6021 100644 --- a/pandas/tests/indexes/test_numeric.py +++ b/pandas/tests/indexes/test_numeric.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - from datetime import datetime import re diff --git a/pandas/tests/indexes/test_range.py b/pandas/tests/indexes/test_range.py index d4ca9c4e215e6..b2c330015081c 100644 --- a/pandas/tests/indexes/test_range.py +++ b/pandas/tests/indexes/test_range.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - from datetime import datetime import numpy as np diff --git a/pandas/tests/indexes/timedeltas/test_arithmetic.py b/pandas/tests/indexes/timedeltas/test_arithmetic.py index dbdf5b38a015d..08ea69ff98ba1 100644 --- a/pandas/tests/indexes/timedeltas/test_arithmetic.py +++ b/pandas/tests/indexes/timedeltas/test_arithmetic.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - from datetime import timedelta import numpy as np diff --git a/pandas/tests/indexes/timedeltas/test_formats.py b/pandas/tests/indexes/timedeltas/test_formats.py index 55bafcdc02013..bc0368534415d 100644 --- a/pandas/tests/indexes/timedeltas/test_formats.py +++ b/pandas/tests/indexes/timedeltas/test_formats.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import pytest import pandas as pd diff --git a/pandas/tests/indexes/timedeltas/test_scalar_compat.py b/pandas/tests/indexes/timedeltas/test_scalar_compat.py index 9ac6994dd9983..fd3c0f7eabe0c 100644 --- a/pandas/tests/indexes/timedeltas/test_scalar_compat.py +++ b/pandas/tests/indexes/timedeltas/test_scalar_compat.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ Tests for TimedeltaIndex methods behaving like their Timedelta counterparts """ diff --git a/pandas/tests/indexing/multiindex/test_indexing_slow.py b/pandas/tests/indexing/multiindex/test_indexing_slow.py index 1fdd42e307733..1eb137eb65fa1 100644 --- a/pandas/tests/indexing/multiindex/test_indexing_slow.py +++ b/pandas/tests/indexing/multiindex/test_indexing_slow.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import warnings import numpy as np diff --git a/pandas/tests/indexing/test_callable.py b/pandas/tests/indexing/test_callable.py index d3b1dd5d45962..b45f69245cfdc 100644 --- a/pandas/tests/indexing/test_callable.py +++ b/pandas/tests/indexing/test_callable.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import numpy as np import pandas as pd diff --git a/pandas/tests/indexing/test_categorical.py b/pandas/tests/indexing/test_categorical.py index b7f2c75b13c3e..36a5f803237a2 100644 --- a/pandas/tests/indexing/test_categorical.py +++ b/pandas/tests/indexing/test_categorical.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import numpy as np import pytest diff --git a/pandas/tests/indexing/test_coercion.py b/pandas/tests/indexing/test_coercion.py index e568e8d700cd3..8b2b0b349e203 100644 --- a/pandas/tests/indexing/test_coercion.py +++ b/pandas/tests/indexing/test_coercion.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import itertools import numpy as np diff --git a/pandas/tests/indexing/test_floats.py b/pandas/tests/indexing/test_floats.py index 990953b58e9b6..020fdcfe445de 100644 --- a/pandas/tests/indexing/test_floats.py +++ b/pandas/tests/indexing/test_floats.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - from warnings import catch_warnings import numpy as np diff --git a/pandas/tests/indexing/test_indexing.py b/pandas/tests/indexing/test_indexing.py index 0d05d78d11480..0d711645af1ef 100644 --- a/pandas/tests/indexing/test_indexing.py +++ b/pandas/tests/indexing/test_indexing.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ test fancy indexing & misc """ from datetime import datetime diff --git a/pandas/tests/indexing/test_indexing_slow.py b/pandas/tests/indexing/test_indexing_slow.py index 1424612963c3c..67467a5f34c44 100644 --- a/pandas/tests/indexing/test_indexing_slow.py +++ b/pandas/tests/indexing/test_indexing_slow.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import pytest from pandas import DataFrame diff --git a/pandas/tests/internals/test_internals.py b/pandas/tests/internals/test_internals.py index 70ddb89ddef1a..fc520436f02f7 100644 --- a/pandas/tests/internals/test_internals.py +++ b/pandas/tests/internals/test_internals.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from collections import OrderedDict from datetime import date, datetime from distutils.version import LooseVersion diff --git a/pandas/tests/io/formats/test_format.py b/pandas/tests/io/formats/test_format.py index d75f80961c0ff..9739fe580f4cf 100644 --- a/pandas/tests/io/formats/test_format.py +++ b/pandas/tests/io/formats/test_format.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - """ Test output formatting for Series/DataFrame, including to_string & reprs """ diff --git a/pandas/tests/io/formats/test_printing.py b/pandas/tests/io/formats/test_printing.py index 5a36175369ae5..1ea7c4d94bbbe 100644 --- a/pandas/tests/io/formats/test_printing.py +++ b/pandas/tests/io/formats/test_printing.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import numpy as np import pytest diff --git a/pandas/tests/io/formats/test_to_csv.py b/pandas/tests/io/formats/test_to_csv.py index 07a8ad23430e2..0acdaaa7f82cd 100644 --- a/pandas/tests/io/formats/test_to_csv.py +++ b/pandas/tests/io/formats/test_to_csv.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import os import sys diff --git a/pandas/tests/io/formats/test_to_html.py b/pandas/tests/io/formats/test_to_html.py index 0acad80bbeef2..fd8f02c05e970 100644 --- a/pandas/tests/io/formats/test_to_html.py +++ b/pandas/tests/io/formats/test_to_html.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - from datetime import datetime from io import StringIO import re diff --git a/pandas/tests/io/json/test_pandas.py b/pandas/tests/io/json/test_pandas.py index b222d679a6012..c18386b3f3700 100644 --- a/pandas/tests/io/json/test_pandas.py +++ b/pandas/tests/io/json/test_pandas.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from collections import OrderedDict from datetime import timedelta from io import StringIO diff --git a/pandas/tests/io/json/test_readlines.py b/pandas/tests/io/json/test_readlines.py index c1eae9e2a4110..eb55acdb5f114 100644 --- a/pandas/tests/io/json/test_readlines.py +++ b/pandas/tests/io/json/test_readlines.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from io import StringIO import pytest diff --git a/pandas/tests/io/json/test_ujson.py b/pandas/tests/io/json/test_ujson.py index 21657544ef3df..0d84221b8d4e3 100644 --- a/pandas/tests/io/json/test_ujson.py +++ b/pandas/tests/io/json/test_ujson.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - try: import json except ImportError: diff --git a/pandas/tests/io/parser/test_c_parser_only.py b/pandas/tests/io/parser/test_c_parser_only.py index 0b5fe1623699c..70cffcd8ffe12 100644 --- a/pandas/tests/io/parser/test_c_parser_only.py +++ b/pandas/tests/io/parser/test_c_parser_only.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - """ Tests that apply specifically to the CParser. Unless specifically stated as a CParser-specific issue, the goal is to eventually move as many of diff --git a/pandas/tests/io/parser/test_comment.py b/pandas/tests/io/parser/test_comment.py index 5ed8e6ea3a6ac..89c9f300b2cf4 100644 --- a/pandas/tests/io/parser/test_comment.py +++ b/pandas/tests/io/parser/test_comment.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - """ Tests that comments are properly handled during parsing for all of the parsers defined in parsers.py diff --git a/pandas/tests/io/parser/test_common.py b/pandas/tests/io/parser/test_common.py index a8349f9ef9107..caafd3d60058d 100644 --- a/pandas/tests/io/parser/test_common.py +++ b/pandas/tests/io/parser/test_common.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - """ Tests that work on both the Python and C engines but do not have a specific classification into the other test modules. diff --git a/pandas/tests/io/parser/test_compression.py b/pandas/tests/io/parser/test_compression.py index 9fdc18dfe5814..a04a5c4e4ad6b 100644 --- a/pandas/tests/io/parser/test_compression.py +++ b/pandas/tests/io/parser/test_compression.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - """ Tests compressed data parsing functionality for all of the parsers defined in parsers.py diff --git a/pandas/tests/io/parser/test_converters.py b/pandas/tests/io/parser/test_converters.py index 2454234e18168..bb67367cd3210 100644 --- a/pandas/tests/io/parser/test_converters.py +++ b/pandas/tests/io/parser/test_converters.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - """ Tests column conversion functionality during parsing for all of the parsers defined in parsers.py diff --git a/pandas/tests/io/parser/test_dialect.py b/pandas/tests/io/parser/test_dialect.py index 98cb9343aab98..6f2878fd2363a 100644 --- a/pandas/tests/io/parser/test_dialect.py +++ b/pandas/tests/io/parser/test_dialect.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - """ Tests that dialects are properly handled during parsing for all of the parsers defined in parsers.py diff --git a/pandas/tests/io/parser/test_dtypes.py b/pandas/tests/io/parser/test_dtypes.py index 325def2bb8add..1d3c935e9101b 100644 --- a/pandas/tests/io/parser/test_dtypes.py +++ b/pandas/tests/io/parser/test_dtypes.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - """ Tests dtype specification during parsing for all of the parsers defined in parsers.py diff --git a/pandas/tests/io/parser/test_header.py b/pandas/tests/io/parser/test_header.py index b2304350f6626..faf62f98be2e0 100644 --- a/pandas/tests/io/parser/test_header.py +++ b/pandas/tests/io/parser/test_header.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - """ Tests that the file header is properly handled or inferred during parsing for all of the parsers defined in parsers.py diff --git a/pandas/tests/io/parser/test_index_col.py b/pandas/tests/io/parser/test_index_col.py index 9d2ebf950c535..de212880d1576 100644 --- a/pandas/tests/io/parser/test_index_col.py +++ b/pandas/tests/io/parser/test_index_col.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - """ Tests that the specified index column (a.k.a "index_col") is properly handled or inferred during parsing for all of diff --git a/pandas/tests/io/parser/test_mangle_dupes.py b/pandas/tests/io/parser/test_mangle_dupes.py index e0ac7dc6e4d78..3b00acd8598fa 100644 --- a/pandas/tests/io/parser/test_mangle_dupes.py +++ b/pandas/tests/io/parser/test_mangle_dupes.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - """ Tests that duplicate columns are handled appropriately when parsed by the CSV engine. In general, the expected result is that they are either thoroughly diff --git a/pandas/tests/io/parser/test_multi_thread.py b/pandas/tests/io/parser/test_multi_thread.py index 2e6cdd3ab2240..b749a8984284d 100644 --- a/pandas/tests/io/parser/test_multi_thread.py +++ b/pandas/tests/io/parser/test_multi_thread.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - """ Tests multithreading behaviour for reading and parsing files for each parser defined in parsers.py diff --git a/pandas/tests/io/parser/test_na_values.py b/pandas/tests/io/parser/test_na_values.py index 4fe73c65cecf7..2367f71a2557e 100644 --- a/pandas/tests/io/parser/test_na_values.py +++ b/pandas/tests/io/parser/test_na_values.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - """ Tests that NA values are properly handled during parsing for all of the parsers defined in parsers.py diff --git a/pandas/tests/io/parser/test_network.py b/pandas/tests/io/parser/test_network.py index 7c6a23701861f..20bd5b74f1784 100644 --- a/pandas/tests/io/parser/test_network.py +++ b/pandas/tests/io/parser/test_network.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - """ Tests parsers ability to read and parse non-local files and hence require a network connection to be read. diff --git a/pandas/tests/io/parser/test_parse_dates.py b/pandas/tests/io/parser/test_parse_dates.py index f523b2910db8e..6c4dfe2ffa1fa 100644 --- a/pandas/tests/io/parser/test_parse_dates.py +++ b/pandas/tests/io/parser/test_parse_dates.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - """ Tests date parsing functionality for all of the parsers defined in parsers.py diff --git a/pandas/tests/io/parser/test_python_parser_only.py b/pandas/tests/io/parser/test_python_parser_only.py index 3c249c9d7b72c..51c44c08cb80c 100644 --- a/pandas/tests/io/parser/test_python_parser_only.py +++ b/pandas/tests/io/parser/test_python_parser_only.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - """ Tests that apply specifically to the Python parser. Unless specifically stated as a Python-specific issue, the goal is to eventually move as many of diff --git a/pandas/tests/io/parser/test_quoting.py b/pandas/tests/io/parser/test_quoting.py index b490b5213e8cd..71d2307773791 100644 --- a/pandas/tests/io/parser/test_quoting.py +++ b/pandas/tests/io/parser/test_quoting.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - """ Tests that quoting specifications are properly handled during parsing for all of the parsers defined in parsers.py diff --git a/pandas/tests/io/parser/test_read_fwf.py b/pandas/tests/io/parser/test_read_fwf.py index 0928c332cb48e..10859bc41d508 100644 --- a/pandas/tests/io/parser/test_read_fwf.py +++ b/pandas/tests/io/parser/test_read_fwf.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - """ Tests the 'read_fwf' function in parsers.py. This test suite is independent of the others because the diff --git a/pandas/tests/io/parser/test_skiprows.py b/pandas/tests/io/parser/test_skiprows.py index 18a0cbd18fd43..78136ec66e9a4 100644 --- a/pandas/tests/io/parser/test_skiprows.py +++ b/pandas/tests/io/parser/test_skiprows.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - """ Tests that skipped rows are properly handled during parsing for all of the parsers defined in parsers.py diff --git a/pandas/tests/io/parser/test_textreader.py b/pandas/tests/io/parser/test_textreader.py index a920814d0ee18..eb3789bb72910 100644 --- a/pandas/tests/io/parser/test_textreader.py +++ b/pandas/tests/io/parser/test_textreader.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - """ Tests the TextReader class in parsers.pyx, which is integral to the C engine in parsers.py diff --git a/pandas/tests/io/parser/test_unsupported.py b/pandas/tests/io/parser/test_unsupported.py index 390604a958ed9..4447a5580ae60 100644 --- a/pandas/tests/io/parser/test_unsupported.py +++ b/pandas/tests/io/parser/test_unsupported.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - """ Tests that features that are currently unsupported in either the Python or C parser are actually enforced diff --git a/pandas/tests/io/parser/test_usecols.py b/pandas/tests/io/parser/test_usecols.py index 4e1f3e9be5086..92cd0e873c02f 100644 --- a/pandas/tests/io/parser/test_usecols.py +++ b/pandas/tests/io/parser/test_usecols.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - """ Tests the usecols functionality during parsing for all of the parsers defined in parsers.py diff --git a/pandas/tests/io/test_clipboard.py b/pandas/tests/io/test_clipboard.py index bc7f1e1fae33b..04223efd6eacb 100644 --- a/pandas/tests/io/test_clipboard.py +++ b/pandas/tests/io/test_clipboard.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from textwrap import dedent import numpy as np diff --git a/pandas/tests/io/test_stata.py b/pandas/tests/io/test_stata.py index c62622b931f38..e6fe6e3b7888f 100644 --- a/pandas/tests/io/test_stata.py +++ b/pandas/tests/io/test_stata.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from collections import OrderedDict import datetime as dt from datetime import datetime diff --git a/pandas/tests/reductions/test_reductions.py b/pandas/tests/reductions/test_reductions.py index eae940e8ee0ee..76ac5353c5916 100644 --- a/pandas/tests/reductions/test_reductions.py +++ b/pandas/tests/reductions/test_reductions.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from datetime import datetime, timedelta import numpy as np diff --git a/pandas/tests/reductions/test_stat_reductions.py b/pandas/tests/reductions/test_stat_reductions.py index 43aff41df68a5..6748e59aa1193 100644 --- a/pandas/tests/reductions/test_stat_reductions.py +++ b/pandas/tests/reductions/test_stat_reductions.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ Tests for statistical reductions of 2nd moment or higher: var, skew, kurt, ... """ diff --git a/pandas/tests/reshape/test_melt.py b/pandas/tests/reshape/test_melt.py index 56258b0f0f789..fbec775bbf407 100644 --- a/pandas/tests/reshape/test_melt.py +++ b/pandas/tests/reshape/test_melt.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import numpy as np from numpy import nan import pytest diff --git a/pandas/tests/reshape/test_pivot.py b/pandas/tests/reshape/test_pivot.py index 64374cd9646eb..cc91bef525eff 100644 --- a/pandas/tests/reshape/test_pivot.py +++ b/pandas/tests/reshape/test_pivot.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - from collections import OrderedDict from datetime import date, datetime, timedelta from itertools import product diff --git a/pandas/tests/reshape/test_reshape.py b/pandas/tests/reshape/test_reshape.py index 77d80619969f8..6be215ee03166 100644 --- a/pandas/tests/reshape/test_reshape.py +++ b/pandas/tests/reshape/test_reshape.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from collections import OrderedDict import numpy as np diff --git a/pandas/tests/scalar/timedelta/test_arithmetic.py b/pandas/tests/scalar/timedelta/test_arithmetic.py index bab41499cb379..0fdbcf6ff4647 100644 --- a/pandas/tests/scalar/timedelta/test_arithmetic.py +++ b/pandas/tests/scalar/timedelta/test_arithmetic.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ Tests for scalar Timedelta arithmetic ops """ diff --git a/pandas/tests/scalar/timedelta/test_construction.py b/pandas/tests/scalar/timedelta/test_construction.py index 5fbd4bcd622b8..4d24680ac5230 100644 --- a/pandas/tests/scalar/timedelta/test_construction.py +++ b/pandas/tests/scalar/timedelta/test_construction.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from datetime import timedelta import numpy as np diff --git a/pandas/tests/scalar/timedelta/test_formats.py b/pandas/tests/scalar/timedelta/test_formats.py index 0d0b24f192f96..7db79f3f832f9 100644 --- a/pandas/tests/scalar/timedelta/test_formats.py +++ b/pandas/tests/scalar/timedelta/test_formats.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import pytest from pandas import Timedelta diff --git a/pandas/tests/scalar/timestamp/test_arithmetic.py b/pandas/tests/scalar/timestamp/test_arithmetic.py index da058234c4274..21e1dccaefc4b 100644 --- a/pandas/tests/scalar/timestamp/test_arithmetic.py +++ b/pandas/tests/scalar/timestamp/test_arithmetic.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from datetime import datetime, timedelta import numpy as np diff --git a/pandas/tests/scalar/timestamp/test_comparisons.py b/pandas/tests/scalar/timestamp/test_comparisons.py index 319bbf88d1989..763cfc23ea832 100644 --- a/pandas/tests/scalar/timestamp/test_comparisons.py +++ b/pandas/tests/scalar/timestamp/test_comparisons.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from datetime import datetime import operator diff --git a/pandas/tests/scalar/timestamp/test_rendering.py b/pandas/tests/scalar/timestamp/test_rendering.py index a0b045cb1f86d..c16ab39d642d9 100644 --- a/pandas/tests/scalar/timestamp/test_rendering.py +++ b/pandas/tests/scalar/timestamp/test_rendering.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - from distutils.version import LooseVersion import pprint diff --git a/pandas/tests/scalar/timestamp/test_timezones.py b/pandas/tests/scalar/timestamp/test_timezones.py index 7aa007eedca93..f67ecdaf746f6 100644 --- a/pandas/tests/scalar/timestamp/test_timezones.py +++ b/pandas/tests/scalar/timestamp/test_timezones.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ Tests for Timestamp timezone-related methods """ diff --git a/pandas/tests/scalar/timestamp/test_unary_ops.py b/pandas/tests/scalar/timestamp/test_unary_ops.py index de1e33fe1ea7e..657008856482f 100644 --- a/pandas/tests/scalar/timestamp/test_unary_ops.py +++ b/pandas/tests/scalar/timestamp/test_unary_ops.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from datetime import datetime from dateutil.tz import gettz diff --git a/pandas/tests/series/test_api.py b/pandas/tests/series/test_api.py index db8c7848d2927..2f929919370bc 100644 --- a/pandas/tests/series/test_api.py +++ b/pandas/tests/series/test_api.py @@ -577,7 +577,7 @@ def test_categorical_delegations(self): # Series should delegate calls to '.categories', '.codes', '.ordered' # and the methods '.set_categories()' 'drop_unused_categories()' to the - # categorical# -*- coding: utf-8 -*- + # categorical s = Series(Categorical(["a", "b", "c", "a"], ordered=True)) exp_categories = Index(["a", "b", "c"]) tm.assert_index_equal(s.cat.categories, exp_categories) diff --git a/pandas/tests/series/test_arithmetic.py b/pandas/tests/series/test_arithmetic.py index db320dca7f15e..43fcddea3d964 100644 --- a/pandas/tests/series/test_arithmetic.py +++ b/pandas/tests/series/test_arithmetic.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import operator import numpy as np diff --git a/pandas/tests/series/test_block_internals.py b/pandas/tests/series/test_block_internals.py index eb91ad96a1224..a18f1e1f444b7 100644 --- a/pandas/tests/series/test_block_internals.py +++ b/pandas/tests/series/test_block_internals.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import pandas as pd # Segregated collection of methods that require the BlockManager internal data diff --git a/pandas/tests/series/test_rank.py b/pandas/tests/series/test_rank.py index b687720f8d0a2..05ea9df545211 100644 --- a/pandas/tests/series/test_rank.py +++ b/pandas/tests/series/test_rank.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from itertools import chain, product import numpy as np diff --git a/pandas/tests/series/test_timezones.py b/pandas/tests/series/test_timezones.py index 238edb7c60f2b..69f3509fbdc4f 100644 --- a/pandas/tests/series/test_timezones.py +++ b/pandas/tests/series/test_timezones.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ Tests for Series timezone-related methods """ diff --git a/pandas/tests/sparse/test_format.py b/pandas/tests/sparse/test_format.py index 38961a96d634b..47e457e6ed519 100644 --- a/pandas/tests/sparse/test_format.py +++ b/pandas/tests/sparse/test_format.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import numpy as np from pandas.compat import is_platform_32bit, is_platform_windows diff --git a/pandas/tests/sparse/test_groupby.py b/pandas/tests/sparse/test_groupby.py index 9695b6a2c8955..ba5c0c4b18b3d 100644 --- a/pandas/tests/sparse/test_groupby.py +++ b/pandas/tests/sparse/test_groupby.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import numpy as np import pytest diff --git a/pandas/tests/test_algos.py b/pandas/tests/test_algos.py index 6e93aae984821..d1c3837a7fd33 100644 --- a/pandas/tests/test_algos.py +++ b/pandas/tests/test_algos.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - from datetime import datetime from itertools import permutations import struct diff --git a/pandas/tests/test_base.py b/pandas/tests/test_base.py index d59891f573d4f..7a8ef11bafb85 100644 --- a/pandas/tests/test_base.py +++ b/pandas/tests/test_base.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from datetime import datetime, timedelta from io import StringIO import re diff --git a/pandas/tests/test_common.py b/pandas/tests/test_common.py index b6de8dd8dcbc9..de8d28eeb41a6 100644 --- a/pandas/tests/test_common.py +++ b/pandas/tests/test_common.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import collections from functools import partial import string diff --git a/pandas/tests/test_compat.py b/pandas/tests/test_compat.py index a3fa7f6314806..063cf0fb676d9 100644 --- a/pandas/tests/test_compat.py +++ b/pandas/tests/test_compat.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ Testing that functions from compat work as expected """ diff --git a/pandas/tests/test_downstream.py b/pandas/tests/test_downstream.py index 04973789b456f..c41c3abcab4af 100644 --- a/pandas/tests/test_downstream.py +++ b/pandas/tests/test_downstream.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ Testing that we work in the downstream packages """ diff --git a/pandas/tests/test_errors.py b/pandas/tests/test_errors.py index 27135d0ef14cc..899b985f247d4 100644 --- a/pandas/tests/test_errors.py +++ b/pandas/tests/test_errors.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import pytest from pandas.errors import AbstractMethodError diff --git a/pandas/tests/test_expressions.py b/pandas/tests/test_expressions.py index 8d165e221b0d3..1f3f5a251ef17 100644 --- a/pandas/tests/test_expressions.py +++ b/pandas/tests/test_expressions.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import operator import re diff --git a/pandas/tests/test_join.py b/pandas/tests/test_join.py index 897b62c447e83..455981506efca 100644 --- a/pandas/tests/test_join.py +++ b/pandas/tests/test_join.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import numpy as np from pandas._libs import join as _join diff --git a/pandas/tests/test_lib.py b/pandas/tests/test_lib.py index d29480bf143d8..66b0d8869940a 100644 --- a/pandas/tests/test_lib.py +++ b/pandas/tests/test_lib.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import numpy as np import pytest diff --git a/pandas/tests/test_multilevel.py b/pandas/tests/test_multilevel.py index 189b7e93ec36f..6e0894034a52c 100644 --- a/pandas/tests/test_multilevel.py +++ b/pandas/tests/test_multilevel.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import datetime from io import StringIO import itertools diff --git a/pandas/tests/test_nanops.py b/pandas/tests/test_nanops.py index eae63bf8de98a..ad035f9c0158d 100644 --- a/pandas/tests/test_nanops.py +++ b/pandas/tests/test_nanops.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from functools import partial import warnings diff --git a/pandas/tests/test_strings.py b/pandas/tests/test_strings.py index d3f98ea819498..2951ca24fa7ff 100644 --- a/pandas/tests/test_strings.py +++ b/pandas/tests/test_strings.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from datetime import datetime, timedelta import re diff --git a/pandas/tests/test_take.py b/pandas/tests/test_take.py index 229ccc1dfcbad..a60fce99eb9a7 100644 --- a/pandas/tests/test_take.py +++ b/pandas/tests/test_take.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from datetime import datetime import re diff --git a/pandas/tests/tseries/offsets/__init__.py b/pandas/tests/tseries/offsets/__init__.py index 40a96afc6ff09..8b137891791fe 100644 --- a/pandas/tests/tseries/offsets/__init__.py +++ b/pandas/tests/tseries/offsets/__init__.py @@ -1 +1 @@ -# -*- coding: utf-8 -*- + diff --git a/pandas/tests/tseries/offsets/common.py b/pandas/tests/tseries/offsets/common.py index 2e8eb224bca7f..e6177fa4aaa4b 100644 --- a/pandas/tests/tseries/offsets/common.py +++ b/pandas/tests/tseries/offsets/common.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ Assertion helpers for offsets tests """ diff --git a/pandas/tests/tseries/offsets/test_fiscal.py b/pandas/tests/tseries/offsets/test_fiscal.py index a5d7460921fb4..b61f5f3b013e4 100644 --- a/pandas/tests/tseries/offsets/test_fiscal.py +++ b/pandas/tests/tseries/offsets/test_fiscal.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ Tests for Fiscal Year and Fiscal Quarter offset classes """ diff --git a/pandas/tests/tseries/offsets/test_offsets_properties.py b/pandas/tests/tseries/offsets/test_offsets_properties.py index cd5f2a2a25e58..50be2deca4d30 100644 --- a/pandas/tests/tseries/offsets/test_offsets_properties.py +++ b/pandas/tests/tseries/offsets/test_offsets_properties.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ Behavioral based tests for offsets and date_range. diff --git a/pandas/tests/tseries/offsets/test_ticks.py b/pandas/tests/tseries/offsets/test_ticks.py index 0d56955f7b2d9..f2f6aed097d0c 100644 --- a/pandas/tests/tseries/offsets/test_ticks.py +++ b/pandas/tests/tseries/offsets/test_ticks.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ Tests for offsets.Tick and subclasses """ diff --git a/pandas/tests/tseries/offsets/test_yqm_offsets.py b/pandas/tests/tseries/offsets/test_yqm_offsets.py index 6d121eb9eb8df..bcfe997583b02 100644 --- a/pandas/tests/tseries/offsets/test_yqm_offsets.py +++ b/pandas/tests/tseries/offsets/test_yqm_offsets.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ Tests for Year, Quarter, and Month-based DateOffset subclasses """ diff --git a/pandas/tests/tslibs/test_api.py b/pandas/tests/tslibs/test_api.py index a69b4761dc414..8474cb17fc28a 100644 --- a/pandas/tests/tslibs/test_api.py +++ b/pandas/tests/tslibs/test_api.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """Tests that the tslibs API is locked down""" from pandas._libs import tslibs diff --git a/pandas/tests/tslibs/test_array_to_datetime.py b/pandas/tests/tslibs/test_array_to_datetime.py index fad778847d3db..680be445e657e 100644 --- a/pandas/tests/tslibs/test_array_to_datetime.py +++ b/pandas/tests/tslibs/test_array_to_datetime.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from datetime import date, datetime from dateutil.tz.tz import tzoffset diff --git a/pandas/tests/tslibs/test_ccalendar.py b/pandas/tests/tslibs/test_ccalendar.py index 255558a80018b..f09dca7fb355e 100644 --- a/pandas/tests/tslibs/test_ccalendar.py +++ b/pandas/tests/tslibs/test_ccalendar.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from datetime import datetime import numpy as np diff --git a/pandas/tests/tslibs/test_conversion.py b/pandas/tests/tslibs/test_conversion.py index 3bbd7ba2ed06d..9e6516ffeee9c 100644 --- a/pandas/tests/tslibs/test_conversion.py +++ b/pandas/tests/tslibs/test_conversion.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - from datetime import datetime import numpy as np diff --git a/pandas/tests/tslibs/test_libfrequencies.py b/pandas/tests/tslibs/test_libfrequencies.py index b9b1c72dbf2e1..279e8edebaf31 100644 --- a/pandas/tests/tslibs/test_libfrequencies.py +++ b/pandas/tests/tslibs/test_libfrequencies.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import pytest from pandas._libs.tslibs.frequencies import ( diff --git a/pandas/tests/tslibs/test_liboffsets.py b/pandas/tests/tslibs/test_liboffsets.py index cb699278595e7..ca6402d6151e0 100644 --- a/pandas/tests/tslibs/test_liboffsets.py +++ b/pandas/tests/tslibs/test_liboffsets.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ Tests for helper functions in the cython tslibs.offsets """ diff --git a/pandas/tests/tslibs/test_normalize_date.py b/pandas/tests/tslibs/test_normalize_date.py index 61a07a3f8a4ba..e169b1c7aa505 100644 --- a/pandas/tests/tslibs/test_normalize_date.py +++ b/pandas/tests/tslibs/test_normalize_date.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """Tests for functions from pandas._libs.tslibs""" from datetime import date, datetime diff --git a/pandas/tests/tslibs/test_parse_iso8601.py b/pandas/tests/tslibs/test_parse_iso8601.py index 3a4625d880bb3..8c995f243a993 100644 --- a/pandas/tests/tslibs/test_parse_iso8601.py +++ b/pandas/tests/tslibs/test_parse_iso8601.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from datetime import datetime import pytest diff --git a/pandas/tests/tslibs/test_parsing.py b/pandas/tests/tslibs/test_parsing.py index 597ec6df7389f..6d9b72b67d4c7 100644 --- a/pandas/tests/tslibs/test_parsing.py +++ b/pandas/tests/tslibs/test_parsing.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ Tests for Timestamp parsing, aimed at pandas/_libs/tslibs/parsing.pyx """ diff --git a/pandas/tests/tslibs/test_period_asfreq.py b/pandas/tests/tslibs/test_period_asfreq.py index 6a9522e705318..a86f1e873893d 100644 --- a/pandas/tests/tslibs/test_period_asfreq.py +++ b/pandas/tests/tslibs/test_period_asfreq.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import pytest from pandas._libs.tslibs.frequencies import get_freq diff --git a/pandas/tests/tslibs/test_timedeltas.py b/pandas/tests/tslibs/test_timedeltas.py index fdc8eff80acad..b53ea76a6ce4d 100644 --- a/pandas/tests/tslibs/test_timedeltas.py +++ b/pandas/tests/tslibs/test_timedeltas.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import numpy as np import pytest diff --git a/pandas/tests/tslibs/test_timezones.py b/pandas/tests/tslibs/test_timezones.py index 0255865dbdf71..e3fb6ecfb9c1c 100644 --- a/pandas/tests/tslibs/test_timezones.py +++ b/pandas/tests/tslibs/test_timezones.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from datetime import datetime import dateutil.tz diff --git a/pandas/tests/util/test_assert_almost_equal.py b/pandas/tests/util/test_assert_almost_equal.py index 6a61d6f7c2549..96fc64a2a7b9c 100644 --- a/pandas/tests/util/test_assert_almost_equal.py +++ b/pandas/tests/util/test_assert_almost_equal.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import numpy as np import pytest diff --git a/pandas/tests/util/test_assert_categorical_equal.py b/pandas/tests/util/test_assert_categorical_equal.py index 04c8301027039..139755d4510b5 100644 --- a/pandas/tests/util/test_assert_categorical_equal.py +++ b/pandas/tests/util/test_assert_categorical_equal.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import pytest from pandas import Categorical diff --git a/pandas/tests/util/test_assert_extension_array_equal.py b/pandas/tests/util/test_assert_extension_array_equal.py index 3149078a56783..782b88be15057 100644 --- a/pandas/tests/util/test_assert_extension_array_equal.py +++ b/pandas/tests/util/test_assert_extension_array_equal.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import numpy as np import pytest diff --git a/pandas/tests/util/test_assert_frame_equal.py b/pandas/tests/util/test_assert_frame_equal.py index f61a31e1079a5..52d1286aa82a5 100644 --- a/pandas/tests/util/test_assert_frame_equal.py +++ b/pandas/tests/util/test_assert_frame_equal.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import pytest from pandas import DataFrame diff --git a/pandas/tests/util/test_assert_index_equal.py b/pandas/tests/util/test_assert_index_equal.py index b5409bf7cd2bf..4ba10777517c8 100644 --- a/pandas/tests/util/test_assert_index_equal.py +++ b/pandas/tests/util/test_assert_index_equal.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import numpy as np import pytest diff --git a/pandas/tests/util/test_assert_interval_array_equal.py b/pandas/tests/util/test_assert_interval_array_equal.py index c81a27f9b3f19..d2dd7912388b0 100644 --- a/pandas/tests/util/test_assert_interval_array_equal.py +++ b/pandas/tests/util/test_assert_interval_array_equal.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import pytest from pandas import interval_range diff --git a/pandas/tests/util/test_assert_numpy_array_equal.py b/pandas/tests/util/test_assert_numpy_array_equal.py index 544759a2d1ea0..447b1ac172202 100644 --- a/pandas/tests/util/test_assert_numpy_array_equal.py +++ b/pandas/tests/util/test_assert_numpy_array_equal.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import numpy as np import pytest diff --git a/pandas/tests/util/test_assert_series_equal.py b/pandas/tests/util/test_assert_series_equal.py index 6b5f3f8b9c03a..aae1cf65e10e2 100644 --- a/pandas/tests/util/test_assert_series_equal.py +++ b/pandas/tests/util/test_assert_series_equal.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import pytest from pandas import Categorical, DataFrame, Series diff --git a/pandas/tests/util/test_deprecate_kwarg.py b/pandas/tests/util/test_deprecate_kwarg.py index 7287df9db8a62..b6e2f8e184a8d 100644 --- a/pandas/tests/util/test_deprecate_kwarg.py +++ b/pandas/tests/util/test_deprecate_kwarg.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import pytest from pandas.util._decorators import deprecate_kwarg diff --git a/pandas/tests/util/test_move.py b/pandas/tests/util/test_move.py index 2c90e1401f222..0987600574b8d 100644 --- a/pandas/tests/util/test_move.py +++ b/pandas/tests/util/test_move.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import pytest from pandas.util._move import BadMove, move_into_mutable_buffer, stolenbuf diff --git a/pandas/tests/util/test_safe_import.py b/pandas/tests/util/test_safe_import.py index a9c52ef788390..eef3657af6562 100644 --- a/pandas/tests/util/test_safe_import.py +++ b/pandas/tests/util/test_safe_import.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import sys import types diff --git a/pandas/tests/util/test_util.py b/pandas/tests/util/test_util.py index e40784fd5467c..a3b82ecc12a1b 100644 --- a/pandas/tests/util/test_util.py +++ b/pandas/tests/util/test_util.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import os import sys diff --git a/pandas/tests/util/test_validate_args.py b/pandas/tests/util/test_validate_args.py index ca71b0c9d2522..581c394401223 100644 --- a/pandas/tests/util/test_validate_args.py +++ b/pandas/tests/util/test_validate_args.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from collections import OrderedDict import pytest diff --git a/pandas/tests/util/test_validate_args_and_kwargs.py b/pandas/tests/util/test_validate_args_and_kwargs.py index c3c0b3dedc085..1d75de1872319 100644 --- a/pandas/tests/util/test_validate_args_and_kwargs.py +++ b/pandas/tests/util/test_validate_args_and_kwargs.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from collections import OrderedDict import pytest diff --git a/pandas/tests/util/test_validate_kwargs.py b/pandas/tests/util/test_validate_kwargs.py index f36818ddfc9a8..1cf9736eaef92 100644 --- a/pandas/tests/util/test_validate_kwargs.py +++ b/pandas/tests/util/test_validate_kwargs.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from collections import OrderedDict import pytest diff --git a/pandas/tseries/frequencies.py b/pandas/tseries/frequencies.py index c7b392a280694..4069a2004476b 100644 --- a/pandas/tseries/frequencies.py +++ b/pandas/tseries/frequencies.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from datetime import timedelta import re from typing import Dict diff --git a/pandas/tseries/offsets.py b/pandas/tseries/offsets.py index 96de63f63aac5..c436c99643341 100644 --- a/pandas/tseries/offsets.py +++ b/pandas/tseries/offsets.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from datetime import date, datetime, timedelta import functools import operator diff --git a/scripts/find_commits_touching_func.py b/scripts/find_commits_touching_func.py index 60233b3c3f8d3..7e05b2b275324 100755 --- a/scripts/find_commits_touching_func.py +++ b/scripts/find_commits_touching_func.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# -*- coding: utf-8 -*- # copyright 2013, y-p @ github """ Search the git history for all commits touching a named method From 7e74a97960a325729425662089b69b50b4ca5067 Mon Sep 17 00:00:00 2001 From: tp Date: Wed, 24 Apr 2019 16:28:06 +0200 Subject: [PATCH 2/3] =?UTF-8?q?changes=20according=20t=C3=B3=20comments?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ci/code_checks.sh | 4 ++++ pandas/tests/tseries/offsets/__init__.py | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 9a95b7887cfab..eb50324cab0f7 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -126,6 +126,10 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then invgrep -r -E --include '*.py' "[[:space:]] pytest.raises" pandas/tests/ RET=$(($RET + $?)) ; echo $MSG "DONE" + MSG='Check for python2-style file encodings' ; echo $MSG + invgrep -R --include="*."{py,pyx} -E "# -\*- coding: utf-8 -\*-" pandas scripts + RET=$(($RET + $?)) ; echo $MSG "DONE" + # Check for the following code in testing: `np.testing` and `np.array_equal` MSG='Check for invalid testing' ; echo $MSG invgrep -r -E --include '*.py' --exclude testing.py '(numpy|np)(\.testing|\.array_equal)' pandas/tests/ diff --git a/pandas/tests/tseries/offsets/__init__.py b/pandas/tests/tseries/offsets/__init__.py index 8b137891791fe..e69de29bb2d1d 100644 --- a/pandas/tests/tseries/offsets/__init__.py +++ b/pandas/tests/tseries/offsets/__init__.py @@ -1 +0,0 @@ - From 20d4c7066805f0ebd12f7f3aaf249d8a75beb41e Mon Sep 17 00:00:00 2001 From: tp Date: Fri, 26 Apr 2019 20:18:04 +0200 Subject: [PATCH 3/3] change code_checks.sh --- ci/code_checks.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index eb50324cab0f7..84d181dd841fe 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -127,7 +127,7 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then RET=$(($RET + $?)) ; echo $MSG "DONE" MSG='Check for python2-style file encodings' ; echo $MSG - invgrep -R --include="*."{py,pyx} -E "# -\*- coding: utf-8 -\*-" pandas scripts + invgrep -R --include="*.py" --include="*.pyx" -E "# -\*- coding: utf-8 -\*-" pandas scripts RET=$(($RET + $?)) ; echo $MSG "DONE" # Check for the following code in testing: `np.testing` and `np.array_equal`