Skip to content

CLN: Remove __future__ imports #25889

New issue

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

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

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 27, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions doc/sphinxext/announce.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@
$ ./scripts/announce.py $GITHUB v1.11.0..v1.11.1 > announce.rst

"""
from __future__ import division, print_function

import codecs
import os
import re
Expand Down
2 changes: 0 additions & 2 deletions pandas/core/algorithms.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
Generic data algorithms. This module is experimental at the moment and not
intended for public consumption
"""
from __future__ import division

from textwrap import dedent
from warnings import catch_warnings, simplefilter, warn

Expand Down
2 changes: 0 additions & 2 deletions pandas/core/arrays/sparse.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
"""
SparseArray data structure
"""
from __future__ import division

import numbers
import operator
import re
Expand Down
2 changes: 0 additions & 2 deletions pandas/core/arrays/timedeltas.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import division

from datetime import timedelta
import textwrap
import warnings
Expand Down
2 changes: 0 additions & 2 deletions pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
alignment and a host of useful data manipulation methods having to do with the
labeling information
"""
from __future__ import division

import collections
from collections import OrderedDict
import functools
Expand Down
2 changes: 0 additions & 2 deletions pandas/core/indexes/datetimes.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# pylint: disable=E1101
from __future__ import division

from datetime import datetime, time, timedelta
import operator
import warnings
Expand Down
3 changes: 0 additions & 3 deletions pandas/core/ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@

This is not a public API.
"""
# necessary to enforce truediv in Python 2.X
from __future__ import division

import datetime
import operator
import textwrap
Expand Down
2 changes: 0 additions & 2 deletions pandas/core/panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
Contains data structures designed for manipulating panel (3-dimensional) data
"""
# pylint: disable=E1103,W0231,W0212,W0621
from __future__ import division

from collections import OrderedDict
import warnings

Expand Down
2 changes: 0 additions & 2 deletions pandas/core/series.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
"""
Data structure for 1-dimensional cross-sectional and time series data
"""
from __future__ import division

from collections import OrderedDict
from textwrap import dedent
import warnings
Expand Down
2 changes: 0 additions & 2 deletions pandas/core/sparse/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
Data structures for sparse float data. Life is made simpler by dealing only
with float64 data
"""
from __future__ import division

import warnings

import numpy as np
Expand Down
2 changes: 0 additions & 2 deletions pandas/core/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
Provide a generic structure to support window functions,
similar to how we have a Groupby object.
"""
from __future__ import division

from collections import defaultdict
from datetime import timedelta
from textwrap import dedent
Expand Down
2 changes: 0 additions & 2 deletions pandas/io/formats/csvs.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
Module for formatting output data into CSV files.
"""

from __future__ import print_function

import csv as csvlib
import os
import warnings
Expand Down
2 changes: 0 additions & 2 deletions pandas/io/formats/format.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
and latex files. This module also applies to display formatting.
"""

from __future__ import print_function

from functools import partial

import numpy as np
Expand Down
2 changes: 0 additions & 2 deletions pandas/io/formats/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
Module for formatting output data in HTML.
"""

from __future__ import print_function

from collections import OrderedDict
from textwrap import dedent

Expand Down
2 changes: 0 additions & 2 deletions pandas/io/formats/latex.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
"""
Module for formatting output data in Latex.
"""
from __future__ import print_function

import numpy as np

from pandas.core.dtypes.generic import ABCMultiIndex
Expand Down
2 changes: 0 additions & 2 deletions pandas/io/formats/terminal.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
It is mentioned in the stackoverflow response that this code works
on linux, os x, windows and cygwin (windows).
"""
from __future__ import print_function

import os
import shutil
import subprocess
Expand Down
2 changes: 0 additions & 2 deletions pandas/io/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
Module contains tools for processing files into DataFrames or other objects
"""

from __future__ import print_function

from collections import defaultdict
import csv
import datetime
Expand Down
2 changes: 0 additions & 2 deletions pandas/io/sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
retrieval and to reduce dependency on DB-specific API.
"""

from __future__ import division, print_function

from contextlib import contextmanager
from datetime import date, datetime, time
from functools import partial
Expand Down
2 changes: 0 additions & 2 deletions pandas/plotting/_compat.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# being a bit too dynamic
# pylint: disable=E1101
from __future__ import division

from distutils.version import LooseVersion
import operator

Expand Down
2 changes: 0 additions & 2 deletions pandas/plotting/_core.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# being a bit too dynamic
# pylint: disable=E1101
from __future__ import division

from collections import namedtuple
from distutils.version import LooseVersion
import re
Expand Down
2 changes: 0 additions & 2 deletions pandas/plotting/_misc.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# being a bit too dynamic
# pylint: disable=E1101
from __future__ import division

import numpy as np

from pandas.compat import lmap, lrange
Expand Down
2 changes: 0 additions & 2 deletions pandas/plotting/_style.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# being a bit too dynamic
# pylint: disable=E1101
from __future__ import division

from contextlib import contextmanager
import warnings

Expand Down
2 changes: 0 additions & 2 deletions pandas/plotting/_tools.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# being a bit too dynamic
# pylint: disable=E1101
from __future__ import division

from math import ceil
import warnings

Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/frame/test_alter_axes.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import print_function

from datetime import datetime, timedelta
import inspect

Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/frame/test_api.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import print_function

# pylint: disable-msg=W0612,E1101
from copy import deepcopy
import pydoc
Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/frame/test_apply.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import print_function

from collections import OrderedDict
from datetime import datetime
from itertools import chain
Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/frame/test_axis_select_reindex.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import print_function

from datetime import datetime

import numpy as np
Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/frame/test_block_internals.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import print_function

from datetime import datetime, timedelta
import itertools

Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/frame/test_combine_concat.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import print_function

from datetime import datetime

import numpy as np
Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/frame/test_constructors.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import print_function

from collections import OrderedDict
from datetime import datetime, timedelta
import functools
Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/frame/test_dtypes.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import print_function

from collections import OrderedDict
from datetime import timedelta

Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/frame/test_duplicates.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import print_function

import numpy as np
import pytest

Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/frame/test_indexing.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import print_function

from datetime import date, datetime, time, timedelta
from warnings import catch_warnings, simplefilter

Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/frame/test_missing.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import print_function

import datetime
from distutils.version import LooseVersion

Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/frame/test_mutate_columns.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import print_function

import numpy as np
import pytest

Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/frame/test_nonunique_indexes.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import print_function

import numpy as np
import pytest

Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/frame/test_operators.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import print_function

from decimal import Decimal
import operator

Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/frame/test_quantile.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import print_function

import numpy as np
import pytest

Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/frame/test_query_eval.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import print_function

import operator

import numpy as np
Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/frame/test_replace.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import print_function

from datetime import datetime
import re

Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/frame/test_repr_info.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import print_function

from datetime import datetime, timedelta
import re
import sys
Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/frame/test_reshape.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import print_function

from datetime import datetime
import itertools

Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/frame/test_sorting.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import print_function

import random

import numpy as np
Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/frame/test_subclass.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import print_function

import numpy as np
import pytest

Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/frame/test_timeseries.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import print_function

from datetime import datetime, time

import numpy as np
Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/frame/test_to_csv.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import print_function

import csv
import os

Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/groupby/aggregate/test_cython.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
test cython .agg behavior
"""

from __future__ import print_function

import numpy as np
import pytest

Expand Down
Loading