diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx index 124792638e3df..908bf59987527 100644 --- a/pandas/_libs/algos.pyx +++ b/pandas/_libs/algos.pyx @@ -1,4 +1,4 @@ -# cython: profile=False +# -*- coding: utf-8 -*- cimport cython from cython cimport Py_ssize_t diff --git a/pandas/_libs/groupby.pyx b/pandas/_libs/groupby.pyx index 5681d01c6bb25..077ef925a8321 100644 --- a/pandas/_libs/groupby.pyx +++ b/pandas/_libs/groupby.pyx @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -# cython: profile=False cimport cython from cython cimport Py_ssize_t diff --git a/pandas/_libs/hashing.pyx b/pandas/_libs/hashing.pyx index a9775d3950187..65fdeb8e33efd 100644 --- a/pandas/_libs/hashing.pyx +++ b/pandas/_libs/hashing.pyx @@ -1,4 +1,4 @@ -# cython: profile=False +# -*- 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 b9a72a0c8285f..2ced98198afc6 100644 --- a/pandas/_libs/hashtable.pyx +++ b/pandas/_libs/hashtable.pyx @@ -1,4 +1,4 @@ -# cython: profile=False +# -*- coding: utf-8 -*- cimport cython diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx index 5918560cf1436..4965469d05276 100644 --- a/pandas/_libs/index.pyx +++ b/pandas/_libs/index.pyx @@ -1,4 +1,4 @@ -# cython: profile=False +# -*- coding: utf-8 -*- from datetime import datetime, timedelta, date cimport cython diff --git a/pandas/_libs/indexing.pyx b/pandas/_libs/indexing.pyx index c680706b7b2d2..af6e00bad7f6b 100644 --- a/pandas/_libs/indexing.pyx +++ b/pandas/_libs/indexing.pyx @@ -1,4 +1,5 @@ -# cython: profile=False +# -*- coding: utf-8 -*- + cdef class _NDFrameIndexerBase: """ diff --git a/pandas/_libs/join.pyx b/pandas/_libs/join.pyx index 27d2a639d13e6..ebb7bd40694ec 100644 --- a/pandas/_libs/join.pyx +++ b/pandas/_libs/join.pyx @@ -1,4 +1,4 @@ -# cython: profile=False +# -*- coding: utf-8 -*- cimport cython from cython cimport Py_ssize_t diff --git a/pandas/_libs/khash.pxd b/pandas/_libs/khash.pxd index 4c00e273b33b7..971a45e365586 100644 --- a/pandas/_libs/khash.pxd +++ b/pandas/_libs/khash.pxd @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -# cython: profile=False from cpython cimport PyObject from numpy cimport int64_t, uint64_t, int32_t, uint32_t, float64_t diff --git a/pandas/_libs/missing.pxd b/pandas/_libs/missing.pxd index b90975df8e247..2c1f13eeb5dff 100644 --- a/pandas/_libs/missing.pxd +++ b/pandas/_libs/missing.pxd @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -# cython: profile=False from tslibs.nattype cimport is_null_datetimelike diff --git a/pandas/_libs/missing.pyx b/pandas/_libs/missing.pyx index e9c3cf12eb328..c787cc61e8773 100644 --- a/pandas/_libs/missing.pyx +++ b/pandas/_libs/missing.pyx @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -# cython: profile=False from cpython cimport PyFloat_Check, PyComplex_Check diff --git a/pandas/_libs/reduction.pyx b/pandas/_libs/reduction.pyx index 3588ac14c87d1..2ccb58dd67014 100644 --- a/pandas/_libs/reduction.pyx +++ b/pandas/_libs/reduction.pyx @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -# cython: profile=False from distutils.version import LooseVersion from cython cimport Py_ssize_t diff --git a/pandas/_libs/reshape.pyx b/pandas/_libs/reshape.pyx index 4fd1fd0f37b1d..8d7e314517ed8 100644 --- a/pandas/_libs/reshape.pyx +++ b/pandas/_libs/reshape.pyx @@ -1,4 +1,4 @@ -# cython: profile=False +# -*- coding: utf-8 -*- cimport cython from cython cimport Py_ssize_t diff --git a/pandas/_libs/skiplist.pxd b/pandas/_libs/skiplist.pxd index 78f206962bcfc..a273d2c445d18 100644 --- a/pandas/_libs/skiplist.pxd +++ b/pandas/_libs/skiplist.pxd @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -# cython: profile=False from cython cimport Py_ssize_t diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index 04e039a9fc2c9..7b938d0279a7c 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -# cython: profile=False from cython cimport Py_ssize_t from cpython cimport PyFloat_Check, PyUnicode_Check diff --git a/pandas/_libs/tslibs/ccalendar.pxd b/pandas/_libs/tslibs/ccalendar.pxd index 04fb6eaf49c84..08f539a70a7ed 100644 --- a/pandas/_libs/tslibs/ccalendar.pxd +++ b/pandas/_libs/tslibs/ccalendar.pxd @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -# cython: profile=False from cython cimport Py_ssize_t diff --git a/pandas/_libs/tslibs/ccalendar.pyx b/pandas/_libs/tslibs/ccalendar.pyx index 12d35f7ce2f58..ec54c023290b3 100644 --- a/pandas/_libs/tslibs/ccalendar.pyx +++ b/pandas/_libs/tslibs/ccalendar.pyx @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -# cython: profile=False # cython: boundscheck=False """ Cython implementations of functions resembling the stdlib calendar module diff --git a/pandas/_libs/tslibs/conversion.pxd b/pandas/_libs/tslibs/conversion.pxd index 96e4676fe91c0..4eb93c35b4afc 100644 --- a/pandas/_libs/tslibs/conversion.pxd +++ b/pandas/_libs/tslibs/conversion.pxd @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -# cython: profile=False from cpython.datetime cimport datetime, tzinfo diff --git a/pandas/_libs/tslibs/conversion.pyx b/pandas/_libs/tslibs/conversion.pyx index 74a9823a85016..fe664cf03b0b9 100644 --- a/pandas/_libs/tslibs/conversion.pyx +++ b/pandas/_libs/tslibs/conversion.pyx @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -# cython: profile=False cimport cython from cython cimport Py_ssize_t diff --git a/pandas/_libs/tslibs/fields.pyx b/pandas/_libs/tslibs/fields.pyx index 96f023f7fdafe..9cbad8acabff1 100644 --- a/pandas/_libs/tslibs/fields.pyx +++ b/pandas/_libs/tslibs/fields.pyx @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -# cython: profile=False """ Functions for accessing attributes of Timestamp/datetime64/datetime-like objects and arrays diff --git a/pandas/_libs/tslibs/frequencies.pxd b/pandas/_libs/tslibs/frequencies.pxd index 98d600c540ace..4e7949e55c836 100644 --- a/pandas/_libs/tslibs/frequencies.pxd +++ b/pandas/_libs/tslibs/frequencies.pxd @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -# cython: profile=False cpdef object get_rule_month(object source, object default=*) diff --git a/pandas/_libs/tslibs/nattype.pxd b/pandas/_libs/tslibs/nattype.pxd index 24ce797575b2a..382ac9d323918 100644 --- a/pandas/_libs/tslibs/nattype.pxd +++ b/pandas/_libs/tslibs/nattype.pxd @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -# cython: profile=False from numpy cimport int64_t cdef int64_t NPY_NAT diff --git a/pandas/_libs/tslibs/nattype.pyx b/pandas/_libs/tslibs/nattype.pyx index 25b1572cfe52f..08d9128ff660c 100644 --- a/pandas/_libs/tslibs/nattype.pyx +++ b/pandas/_libs/tslibs/nattype.pyx @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -# cython: profile=False from cpython cimport ( PyFloat_Check, PyComplex_Check, diff --git a/pandas/_libs/tslibs/np_datetime.pxd b/pandas/_libs/tslibs/np_datetime.pxd index c3d229d4e5006..803c8cb18e3d5 100644 --- a/pandas/_libs/tslibs/np_datetime.pxd +++ b/pandas/_libs/tslibs/np_datetime.pxd @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -# cython: profile=False from cpython.datetime cimport date, datetime diff --git a/pandas/_libs/tslibs/np_datetime.pyx b/pandas/_libs/tslibs/np_datetime.pyx index a0099837e876a..f0aa6389fba56 100644 --- a/pandas/_libs/tslibs/np_datetime.pyx +++ b/pandas/_libs/tslibs/np_datetime.pyx @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -# cython: profile=False from cpython cimport (Py_EQ, Py_NE, Py_GE, Py_GT, Py_LT, Py_LE, PyUnicode_Check, PyUnicode_AsASCIIString) diff --git a/pandas/_libs/tslibs/timedeltas.pxd b/pandas/_libs/tslibs/timedeltas.pxd index e139cb38cb241..dbdead1dba551 100644 --- a/pandas/_libs/tslibs/timedeltas.pxd +++ b/pandas/_libs/tslibs/timedeltas.pxd @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -# cython: profile=False from numpy cimport int64_t diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx index c32ad2f4d599c..b84c1a753215a 100644 --- a/pandas/_libs/tslibs/timedeltas.pyx +++ b/pandas/_libs/tslibs/timedeltas.pyx @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -# cython: profile=False import collections import textwrap import warnings diff --git a/pandas/_libs/tslibs/timestamps.pxd b/pandas/_libs/tslibs/timestamps.pxd index e9e484c715f9a..d6b649becc479 100644 --- a/pandas/_libs/tslibs/timestamps.pxd +++ b/pandas/_libs/tslibs/timestamps.pxd @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -# cython: profile=False from numpy cimport int64_t from np_datetime cimport npy_datetimestruct diff --git a/pandas/_libs/tslibs/timestamps.pyx b/pandas/_libs/tslibs/timestamps.pyx index 67420fda8aa51..3ab1396c0fe38 100644 --- a/pandas/_libs/tslibs/timestamps.pyx +++ b/pandas/_libs/tslibs/timestamps.pyx @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -# cython: profile=False import warnings from cpython cimport (PyObject_RichCompareBool, PyObject_RichCompare, diff --git a/pandas/_libs/tslibs/timezones.pxd b/pandas/_libs/tslibs/timezones.pxd index 67353f3eec614..e8a10a0728212 100644 --- a/pandas/_libs/tslibs/timezones.pxd +++ b/pandas/_libs/tslibs/timezones.pxd @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -# cython: profile=False cdef bint is_utc(object tz) cdef bint is_tzlocal(object tz) diff --git a/pandas/_libs/tslibs/timezones.pyx b/pandas/_libs/tslibs/timezones.pyx index a787452d90c07..4d87a37866c49 100644 --- a/pandas/_libs/tslibs/timezones.pyx +++ b/pandas/_libs/tslibs/timezones.pyx @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -# cython: profile=False from cython cimport Py_ssize_t diff --git a/pandas/_libs/window.pyx b/pandas/_libs/window.pyx index efc8a02014bc0..c43750c754209 100644 --- a/pandas/_libs/window.pyx +++ b/pandas/_libs/window.pyx @@ -1,4 +1,4 @@ -# cython: profile=False +# -*- coding: utf-8 -*- # cython: boundscheck=False, wraparound=False, cdivision=True cimport cython