id
int64
0
328k
repository_name
stringlengths
7
58
file_path
stringlengths
9
302
class_name
stringlengths
5
256
human_written_code
stringlengths
16
2.16M
class_skeleton
stringlengths
18
1.49M
⌀
total_program_units
int64
1
1.76k
total_doc_str
int64
0
771
AvgCountLine
float64
0
7.89k
AvgCountLineBlank
float64
0
297
AvgCountLineCode
float64
0
7.89k
AvgCountLineComment
float64
0
7.89k
AvgCyclomatic
float64
0
130
CommentToCodeRatio
float64
0
168
CountClassBase
float64
0
40
CountClassCoupled
float64
0
583
CountClassCoupledModified
float64
0
575
CountClassDerived
float64
0
5.35k
CountDeclInstanceMethod
float64
0
529
CountDeclInstanceVariable
float64
0
296
CountDeclMethod
float64
0
599
CountDeclMethodAll
float64
0
1.12k
CountLine
float64
1
40.4k
CountLineBlank
float64
0
8.16k
CountLineCode
float64
1
25.7k
CountLineCodeDecl
float64
1
8.15k
CountLineCodeExe
float64
0
24.2k
CountLineComment
float64
0
16.5k
CountStmt
float64
1
9.71k
CountStmtDecl
float64
1
8.15k
CountStmtExe
float64
0
9.69k
MaxCyclomatic
float64
0
759
MaxInheritanceTree
float64
0
16
MaxNesting
float64
0
34
SumCyclomatic
float64
0
2.9k
7,100
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/series_methods.py
benchmarks.series_methods.Any
from pandas import NA, Index, NaT, Series, date_range class Any: params = [[10 ** 3, 10 ** 6], ['fast', 'slow'], ['bool', 'boolean']] param_names = ['N', 'case', 'dtype'] def setup(self, N, case, dtype): val = case == 'fast' self.s = Series([val] * N, dtype=dtype) def time_any(self, N...
class Any: def setup(self, N, case, dtype): pass def time_any(self, N, case, dtype): pass
3
0
3
0
3
0
1
0
0
1
0
0
2
1
2
2
10
2
8
7
5
0
8
7
5
1
0
0
2
7,101
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/series_methods.py
benchmarks.series_methods.Clip
from pandas import NA, Index, NaT, Series, date_range import numpy as np class Clip: params = [50, 1000, 10 ** 5] param_names = ['n'] def setup(self, n): self.s = Series(np.random.randn(n)) def time_clip(self, n): self.s.clip(0, 1)
class Clip: def setup(self, n): pass def time_clip(self, n): pass
3
0
2
0
2
0
1
0
0
1
0
0
2
1
2
2
9
2
7
6
4
0
7
6
4
1
0
0
2
7,102
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/series_methods.py
benchmarks.series_methods.ClipDt
from pandas import NA, Index, NaT, Series, date_range class ClipDt: def setup(self): dr = date_range('20220101', periods=100000, freq='s', tz='UTC') self.clipper_dt = dr[0:1000].repeat(100) self.s = Series(dr) def time_clip(self): self.s.clip(upper=self.clipper_dt)
class ClipDt: def setup(self): pass def time_clip(self): pass
3
0
3
0
3
0
1
0
0
1
0
0
2
2
2
2
8
1
7
6
4
0
7
6
4
1
0
0
2
7,103
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/series_methods.py
benchmarks.series_methods.Dir
from pandas import NA, Index, NaT, Series, date_range class Dir: def setup(self): self.s = Series(index=Index([f'i-{i}' for i in range(10000)], dtype=object)) def time_dir_strings(self): dir(self.s)
class Dir: def setup(self): pass def time_dir_strings(self): pass
3
0
2
0
2
0
1
0
0
3
0
0
2
1
2
2
6
1
5
4
2
0
5
4
2
1
0
0
2
7,104
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/series_methods.py
benchmarks.series_methods.Dropna
from pandas import NA, Index, NaT, Series, date_range import numpy as np class Dropna: params = ['int', 'datetime'] param_names = ['dtype'] def setup(self, dtype): N = 10 ** 6 data = {'int': np.random.randint(1, 10, N), 'datetime': date_range('2000-01-01', freq='s', periods=N)} sel...
class Dropna: def setup(self, dtype): pass def time_dropna(self, dtype): pass
3
0
6
0
6
0
2
0
0
1
0
0
2
1
2
2
16
2
14
8
11
0
11
8
8
2
0
1
3
7,105
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/series_methods.py
benchmarks.series_methods.Fillna
import numpy as np from pandas import NA, Index, NaT, Series, date_range class Fillna: params = [['datetime64[ns]', 'float32', 'float64', 'Float64', 'Int64', 'int64[pyarrow]', 'string', 'string[pyarrow]']] param_names = ['dtype'] def setup(self, dtype): N = 10 ** 6 if dtype == 'datetime64[...
class Fillna: def setup(self, dtype): pass def time_fillna(self, dtype): pass def time_ffill(self, dtype): pass def time_bfill(self, dtype): pass
5
0
7
0
7
0
2
0
0
5
0
0
4
2
4
4
45
4
41
14
36
0
26
14
21
5
0
1
8
7,106
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/series_methods.py
benchmarks.series_methods.Iter
import numpy as np from pandas import NA, Index, NaT, Series, date_range class Iter: param_names = ['dtype'] params = ['bool', 'boolean', 'int64', 'Int64', 'float64', 'Float64', 'datetime64[ns]'] def setup(self, dtype): N = 10 ** 5 if dtype in ['bool', 'boolean']: data = np.rep...
class Iter: def setup(self, dtype): pass def time_iter(self, dtype): pass
3
0
9
1
8
0
4
0
0
2
0
0
2
1
2
2
30
3
27
9
24
0
15
9
12
5
0
1
7
7,107
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/series_methods.py
benchmarks.series_methods.Map
from pandas import NA, Index, NaT, Series, date_range import numpy as np class Map: params = (['dict', 'Series', 'lambda'], ['object', 'category', 'int'], [None, 'ignore']) param_names = ['mapper', 'dtype', 'na_action'] def setup(self, mapper, dtype, na_action): map_size = 1000 map_data = ...
class Map: def setup(self, mapper, dtype, na_action): pass def time_map(self, mapper, dtype, na_action): pass
3
0
9
1
8
1
3
0.05
0
2
0
0
2
2
2
2
27
4
22
10
19
1
15
10
12
4
0
1
5
7,108
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/series_methods.py
benchmarks.series_methods.Mode
from pandas import NA, Index, NaT, Series, date_range import numpy as np class Mode: params = [[10 ** 3, 10 ** 4, 10 ** 5], ['int', 'uint', 'float', 'object']] param_names = ['N', 'dtype'] def setup(self, N, dtype): self.s = Series(np.random.randint(0, N, size=10 * N)).astype(dtype) def time_...
class Mode: def setup(self, N, dtype): pass def time_mode(self, N, dtype): pass
3
0
2
0
2
0
1
0
0
1
0
0
2
1
2
2
9
2
7
6
4
0
7
6
4
1
0
0
2
7,109
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/series_methods.py
benchmarks.series_methods.ModeObjectDropNAFalse
from pandas import NA, Index, NaT, Series, date_range import numpy as np class ModeObjectDropNAFalse: params = [10 ** 3, 10 ** 4, 10 ** 5] param_names = ['N'] def setup(self, N): self.s = Series(np.random.randint(0, N, size=10 * N)).astype('object') def time_mode(self, N): self.s.mode...
class ModeObjectDropNAFalse: def setup(self, N): pass def time_mode(self, N): pass
3
0
2
0
2
0
1
0
0
1
0
0
2
1
2
2
9
2
7
6
4
0
7
6
4
1
0
0
2
7,110
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/series_methods.py
benchmarks.series_methods.NSort
import numpy as np from pandas import NA, Index, NaT, Series, date_range class NSort: params = ['first', 'last', 'all'] param_names = ['keep'] def setup(self, keep): self.s = Series(np.random.randint(1, 10, 100000)) def time_nlargest(self, keep): self.s.nlargest(3, keep=keep) def...
class NSort: def setup(self, keep): pass def time_nlargest(self, keep): pass def time_nsmallest(self, keep): pass
4
0
2
0
2
0
1
0
0
1
0
0
3
1
3
3
12
3
9
7
5
0
9
7
5
1
0
0
3
7,111
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/series_methods.py
benchmarks.series_methods.NanOps
import numpy as np from pandas import NA, Index, NaT, Series, date_range class NanOps: params = [['var', 'mean', 'median', 'max', 'min', 'sum', 'std', 'sem', 'argmax', 'skew', 'kurt', 'prod'], [10 ** 3, 10 ** 6], ['int8', 'int32', 'int64', 'float64', 'Int64', 'boolean']] param_names = ['func', 'N', 'dtype'] ...
class NanOps: def setup(self, func, N, dtype): pass def time_func(self, func, N, dtype): pass
3
0
4
0
4
1
2
0.04
0
2
0
0
2
2
2
2
30
2
27
7
24
1
10
7
7
2
0
1
3
7,112
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/series_methods.py
benchmarks.series_methods.Rank
import numpy as np from pandas import NA, Index, NaT, Series, date_range class Rank: param_names = ['dtype'] params = [['int', 'uint', 'float', 'object']] def setup(self, dtype): self.s = Series(np.random.randint(0, 1000, size=100000), dtype=dtype) def time_rank(self, dtype): self.s.r...
class Rank: def setup(self, dtype): pass def time_rank(self, dtype): pass
3
0
2
0
2
0
1
0
0
1
0
0
2
1
2
2
11
2
9
6
6
0
7
6
4
1
0
0
2
7,113
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/series_methods.py
benchmarks.series_methods.Replace
from pandas import NA, Index, NaT, Series, date_range import numpy as np class Replace: param_names = ['num_to_replace'] params = [100, 1000] def setup(self, num_to_replace): N = 1000000 self.arr = np.random.randn(N) self.arr1 = self.arr.copy() np.random.shuffle(self.arr1) ...
class Replace: def setup(self, num_to_replace): pass def time_replace_dict(self, num_to_replace): pass def peakmem_replace_dict(self, num_to_replace): pass def time_replace_list(self, num_to_replace): pass def peakmem_replace_list(self, num_to_replace): ...
6
0
4
0
3
0
1
0
0
3
0
0
5
6
5
5
27
7
20
15
14
0
20
15
14
1
0
0
5
7,114
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/series_methods.py
benchmarks.series_methods.SearchSorted
import numpy as np from pandas import NA, Index, NaT, Series, date_range class SearchSorted: goal_time = 0.2 params = ['int8', 'int16', 'int32', 'int64', 'uint8', 'uint16', 'uint32', 'uint64', 'float16', 'float32', 'float64', 'str'] param_names = ['dtype'] def setup(self, dtype): N = 10 ** 5 ...
class SearchSorted: def setup(self, dtype): pass def time_searchsorted(self, dtype): pass
3
0
4
0
4
0
2
0
0
1
0
0
2
1
2
2
26
2
24
10
21
0
11
10
8
2
0
0
3
7,115
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/series_methods.py
benchmarks.series_methods.SeriesConstructor
from datetime import datetime from pandas import NA, Index, NaT, Series, date_range import numpy as np class SeriesConstructor: def setup(self): self.idx = date_range(start=datetime(2015, 10, 26), end=datetime(2016, 1, 1), freq='50s') self.data = dict(zip(self.idx, range(len(self.idx)))) s...
class SeriesConstructor: def setup(self): pass def time_constructor_dict(self): pass def time_constructor_no_data(self): pass
4
0
4
0
4
0
1
0
0
5
0
0
3
4
3
3
14
2
12
8
8
0
10
8
6
1
0
0
3
7,116
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/series_methods.py
benchmarks.series_methods.SeriesGetattr
from pandas import NA, Index, NaT, Series, date_range class SeriesGetattr: def setup(self): self.s = Series(1, index=date_range('2012-01-01', freq='s', periods=10 ** 6)) def time_series_datetimeindex_repr(self): getattr(self.s, 'a', None)
class SeriesGetattr: def setup(self): pass def time_series_datetimeindex_repr(self): pass
3
0
2
0
2
0
1
0.2
0
1
0
0
2
1
2
2
7
1
5
4
2
1
5
4
2
1
0
0
2
7,117
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/series_methods.py
benchmarks.series_methods.ToFrame
import numpy as np from pandas import NA, Index, NaT, Series, date_range class ToFrame: params = [['int64', 'datetime64[ns]', 'category', 'Int64'], [None, 'foo']] param_names = ['dtype', 'name'] def setup(self, dtype, name): arr = np.arange(10 ** 5) ser = Series(arr, dtype=dtype) s...
class ToFrame: def setup(self, dtype, name): pass def time_to_frame(self, dtype, name): pass
3
0
3
0
3
0
1
0
0
1
0
0
2
1
2
2
11
2
9
8
6
0
9
8
6
1
0
0
2
7,118
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/series_methods.py
benchmarks.series_methods.ToNumpy
import numpy as np from pandas import NA, Index, NaT, Series, date_range class ToNumpy: def setup(self): N = 1000000 self.ser = Series(np.random.randn(N)) def time_to_numpy(self): self.ser.to_numpy() def time_to_numpy_double_copy(self): self.ser.to_numpy(dtype='float64', ...
class ToNumpy: def setup(self): pass def time_to_numpy(self): pass def time_to_numpy_double_copy(self): pass def time_to_numpy_copy(self): pass def time_to_numpy_float_with_nan(self): pass
6
0
3
0
3
0
1
0
0
1
0
0
5
1
5
5
20
4
16
8
10
0
12
8
6
1
0
0
5
7,119
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/series_methods.py
benchmarks.series_methods.ValueCounts
import numpy as np from pandas import NA, Index, NaT, Series, date_range class ValueCounts: params = [[10 ** 3, 10 ** 4, 10 ** 5], ['int', 'uint', 'float', 'object']] param_names = ['N', 'dtype'] def setup(self, N, dtype): self.s = Series(np.random.randint(0, N, size=10 * N)).astype(dtype) de...
class ValueCounts: def setup(self, N, dtype): pass def time_value_counts(self, N, dtype): pass
3
0
2
0
2
0
1
0
0
1
0
0
2
1
2
2
9
2
7
6
4
0
7
6
4
1
0
0
2
7,120
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/series_methods.py
benchmarks.series_methods.ValueCountsEA
import numpy as np from pandas import NA, Index, NaT, Series, date_range class ValueCountsEA: params = [[10 ** 3, 10 ** 4, 10 ** 5], [True, False]] param_names = ['N', 'dropna'] def setup(self, N, dropna): self.s = Series(np.random.randint(0, N, size=10 * N), dtype='Int64') self.s.loc[1] =...
class ValueCountsEA: def setup(self, N, dropna): pass def time_value_counts(self, N, dropna): pass
3
0
3
0
3
0
1
0
0
1
0
0
2
1
2
2
10
2
8
6
5
0
8
6
5
1
0
0
2
7,121
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/series_methods.py
benchmarks.series_methods.ValueCountsObjectDropNAFalse
from pandas import NA, Index, NaT, Series, date_range import numpy as np class ValueCountsObjectDropNAFalse: params = [10 ** 3, 10 ** 4, 10 ** 5] param_names = ['N'] def setup(self, N): self.s = Series(np.random.randint(0, N, size=10 * N)).astype('object') def time_value_counts(self, N): ...
class ValueCountsObjectDropNAFalse: def setup(self, N): pass def time_value_counts(self, N): pass
3
0
2
0
2
0
1
0
0
1
0
0
2
1
2
2
9
2
7
6
4
0
7
6
4
1
0
0
2
7,122
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/sparse.py
benchmarks.sparse.Arithmetic
import numpy as np from pandas.arrays import SparseArray class Arithmetic: params = ([0.1, 0.01], [0, np.nan]) param_names = ['dense_proportion', 'fill_value'] def setup(self, dense_proportion, fill_value): N = 10 ** 6 arr1 = make_array(N, dense_proportion, fill_value, np.int64) se...
class Arithmetic: def setup(self, dense_proportion, fill_value): pass def time_make_union(self, dense_proportion, fill_value): pass def time_intersect(self, dense_proportion, fill_value): pass def time_add(self, dense_proportion, fill_value): pass def time_divid...
6
0
3
0
3
0
1
0
0
0
0
0
5
2
5
5
22
5
17
13
11
0
17
13
11
1
0
0
5
7,123
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/sparse.py
benchmarks.sparse.ArithmeticBlock
import numpy as np from pandas.arrays import SparseArray class ArithmeticBlock: params = [np.nan, 0] param_names = ['fill_value'] def setup(self, fill_value): N = 10 ** 6 self.arr1 = self.make_block_array(length=N, num_blocks=1000, block_size=10, fill_value=fill_value) self.arr2 = ...
class ArithmeticBlock: def setup(self, fill_value): pass def make_block_array(self, length, num_blocks, block_size, fill_value): pass def time_make_union(self, fill_value): pass def time_intersect(self, fill_value): pass def time_addition(self, fill_value): ...
7
0
4
0
4
0
1
0
0
0
0
0
6
2
6
6
33
6
27
15
20
0
21
15
14
2
0
1
7
7,124
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/sparse.py
benchmarks.sparse.FromCoo
import scipy.sparse from pandas import MultiIndex, Series, date_range class FromCoo: def setup(self): self.matrix = scipy.sparse.coo_matrix(([3.0, 1.0, 2.0], ([1, 0, 0], [0, 2, 3])), shape=(100, 100)) def time_sparse_series_from_coo(self): Series.sparse.from_coo(self.matrix)
class FromCoo: def setup(self): pass def time_sparse_series_from_coo(self): pass
3
0
3
0
3
0
1
0
0
1
0
0
2
1
2
2
8
1
7
4
4
0
5
4
2
1
0
0
2
7,125
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/sparse.py
benchmarks.sparse.GetItem
from pandas.arrays import SparseArray import numpy as np class GetItem: def setup(self): N = 1000000 d = 1e-05 arr = make_array(N, d, np.nan, np.float64) self.sp_arr = SparseArray(arr) def time_integer_indexing(self): self.sp_arr[78] def time_slice(self): ...
class GetItem: def setup(self): pass def time_integer_indexing(self): pass def time_slice(self): pass
4
0
3
0
3
0
1
0
0
0
0
0
3
1
3
3
12
2
10
8
6
0
10
8
6
1
0
0
3
7,126
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/sparse.py
benchmarks.sparse.GetItemMask
import numpy as np from pandas.arrays import SparseArray import pandas as pd class GetItemMask: params = [True, False, np.nan] param_names = ['fill_value'] def setup(self, fill_value): N = 1000000 d = 1e-05 arr = make_array(N, d, np.nan, np.float64) self.sp_arr = SparseArra...
class GetItemMask: def setup(self, fill_value): pass def time_mask(self, fill_value): pass
3
0
7
0
7
0
2
0
0
1
0
0
2
2
2
2
18
2
16
12
13
0
14
12
11
2
0
0
3
7,127
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/sparse.py
benchmarks.sparse.MinMax
from pandas.arrays import SparseArray import numpy as np class MinMax: params = (['min', 'max'], [0.0, np.nan]) param_names = ['func', 'fill_value'] def setup(self, func, fill_value): N = 1000000 arr = make_array(N, 1e-05, fill_value, np.float64) self.sp_arr = SparseArray(arr, fill...
class MinMax: def setup(self, func, fill_value): pass def time_min_max(self, func, fill_value): pass
3
0
3
0
3
0
1
0
0
0
0
0
2
1
2
2
11
2
9
8
6
0
9
8
6
1
0
0
2
7,128
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/sparse.py
benchmarks.sparse.SparseArrayConstructor
from pandas.arrays import SparseArray import numpy as np class SparseArrayConstructor: params = ([0.1, 0.01], [0, np.nan], [np.int64, np.float64, object]) param_names = ['dense_proportion', 'fill_value', 'dtype'] def setup(self, dense_proportion, fill_value, dtype): N = 10 ** 6 self.array ...
class SparseArrayConstructor: def setup(self, dense_proportion, fill_value, dtype): pass def time_sparse_array(self, dense_proportion, fill_value, dtype): pass
3
0
3
0
3
0
1
0
0
0
0
0
2
1
2
2
10
2
8
7
5
0
8
7
5
1
0
0
2
7,129
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/sparse.py
benchmarks.sparse.SparseDataFrameConstructor
import pandas as pd import scipy.sparse class SparseDataFrameConstructor: def setup(self): N = 1000 self.sparse = scipy.sparse.rand(N, N, 0.005) def time_from_scipy(self): pd.DataFrame.sparse.from_spmatrix(self.sparse)
class SparseDataFrameConstructor: def setup(self): pass def time_from_scipy(self): pass
3
0
3
0
3
0
1
0
0
0
0
0
2
1
2
2
7
1
6
5
3
0
6
5
3
1
0
0
2
7,130
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/sparse.py
benchmarks.sparse.SparseSeriesToFrame
import numpy as np from pandas import MultiIndex, Series, date_range from pandas.arrays import SparseArray import pandas as pd class SparseSeriesToFrame: def setup(self): K = 50 N = 50001 rng = date_range('1/1/2000', periods=N, freq='min') self.series = {} for i in range(1,...
class SparseSeriesToFrame: def setup(self): pass def time_series_to_frame(self): pass
3
0
6
0
6
0
2
0
0
2
0
0
2
1
2
2
14
1
13
10
10
0
13
10
10
2
0
1
3
7,131
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/sparse.py
benchmarks.sparse.Take
import numpy as np from pandas.arrays import SparseArray class Take: params = ([np.array([0]), np.arange(100000), np.full(100000, -1)], [True, False]) param_names = ['indices', 'allow_fill'] def setup(self, indices, allow_fill): N = 1000000 fill_value = 0.0 arr = make_array(N, 1e-0...
class Take: def setup(self, indices, allow_fill): pass def time_take(self, indices, allow_fill): pass
3
0
4
0
4
0
1
0
0
0
0
0
2
1
2
2
12
2
10
9
7
0
10
9
7
1
0
0
2
7,132
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/sparse.py
benchmarks.sparse.ToCoo
from pandas import MultiIndex, Series, date_range import numpy as np class ToCoo: params = [True, False] param_names = ['sort_labels'] def setup(self, sort_labels): s = Series([np.nan] * 10000) s[0] = 3.0 s[100] = -1.0 s[999] = 12.1 s_mult_lvl = s.set_axis(MultiInde...
class ToCoo: def setup(self, sort_labels): pass def time_sparse_series_to_coo(self, sort_labels): pass def time_sparse_series_to_coo_single_level(self, sort_labels): pass
4
0
6
1
5
0
1
0
0
2
0
0
3
2
3
3
23
5
18
11
14
0
16
11
12
1
0
0
3
7,133
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/sparse.py
benchmarks.sparse.ToCooFrame
import pandas as pd import numpy as np class ToCooFrame: def setup(self): N = 10000 k = 10 arr = np.zeros((N, k), dtype=float) arr[0, 0] = 3.0 arr[12, 7] = -1.0 arr[0, 9] = 11.2 self.df = pd.DataFrame(arr, dtype=pd.SparseDtype('float', fill_value=0.0)) ...
class ToCooFrame: def setup(self): pass def time_to_coo(self): pass
3
0
5
0
5
0
1
0
0
2
0
0
2
1
2
2
12
1
11
7
8
0
11
7
8
1
0
0
2
7,134
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/stat_ops.py
benchmarks.stat_ops.Correlation
import pandas as pd import numpy as np class Correlation: params = [['spearman', 'kendall', 'pearson']] param_names = ['method'] def setup(self, method): self.df = pd.DataFrame(np.random.randn(500, 15)) self.df2 = pd.DataFrame(np.random.randn(500, 15)) self.df_wide = pd.DataFrame(n...
class Correlation: def setup(self, method): pass def time_corr(self, method): pass def time_corr_wide(self, method): pass def time_corr_wide_nans(self, method): pass def peakmem_corr_wide(self, method): pass def time_corr_series(self, method): ...
9
0
3
0
3
0
1
0
0
1
0
0
8
6
8
8
32
8
24
17
15
0
24
17
15
1
0
0
8
7,135
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/stat_ops.py
benchmarks.stat_ops.Covariance
import pandas as pd import numpy as np class Covariance: params = [] param_names = [] def setup(self): self.s = pd.Series(np.random.randn(100000)) self.s2 = pd.Series(np.random.randn(100000)) def time_cov_series(self): self.s.cov(self.s2)
class Covariance: def setup(self): pass def time_cov_series(self): pass
3
0
3
0
3
0
1
0
0
1
0
0
2
2
2
2
10
2
8
7
5
0
8
7
5
1
0
0
2
7,136
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/stat_ops.py
benchmarks.stat_ops.FrameMixedDtypesOps
import pandas as pd import numpy as np class FrameMixedDtypesOps: params = [ops, [0, 1, None]] param_names = ['op', 'axis'] def setup(self, op, axis): if op in ('sum', 'skew', 'kurt', 'prod', 'sem', 'var') or (op, axis) in (('mean', 1), ('mean', None), ('median', 1), ('median', None), ('std', 1), ...
class FrameMixedDtypesOps: def setup(self, op, axis): pass def time_op(self, op, axis): pass
3
0
14
1
12
1
2
0.04
0
1
0
0
2
1
2
2
32
4
27
8
24
1
11
8
8
2
0
1
3
7,137
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/stat_ops.py
benchmarks.stat_ops.FrameMultiIndexOps
import numpy as np import pandas as pd class FrameMultiIndexOps: params = [ops] param_names = ['op'] def setup(self, op): levels = [np.arange(10), np.arange(100), np.arange(100)] codes = [np.arange(10).repeat(10000), np.tile(np.arange(100).repeat(100), 10), np.tile(np.tile(np.arange(100), ...
class FrameMultiIndexOps: def setup(self, op): pass def time_op(self, op): pass
3
0
6
0
6
0
1
0
0
0
0
0
2
1
2
2
17
2
15
10
12
0
11
10
8
1
0
0
2
7,138
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/stat_ops.py
benchmarks.stat_ops.FrameOps
import numpy as np import pandas as pd class FrameOps: params = [ops, ['float', 'int', 'Int64'], [0, 1, None]] param_names = ['op', 'dtype', 'axis'] def setup(self, op, dtype, axis): values = np.random.randn(100000, 4) if dtype == 'Int64': values = values.astype(int) df...
class FrameOps: def setup(self, op, dtype, axis): pass def time_op(self, op, dtype, axis): pass
3
0
4
0
4
0
2
0
0
1
0
0
2
1
2
2
13
2
11
8
8
0
11
8
8
2
0
1
3
7,139
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/stat_ops.py
benchmarks.stat_ops.Rank
import pandas as pd import numpy as np class Rank: params = [['DataFrame', 'Series'], [True, False]] param_names = ['constructor', 'pct'] def setup(self, constructor, pct): values = np.random.randn(10 ** 5) self.data = getattr(pd, constructor)(values) def time_rank(self, constructor, ...
class Rank: def setup(self, constructor, pct): pass def time_rank(self, constructor, pct): pass def time_average_old(self, constructor, pct): pass
4
0
2
0
2
0
1
0
0
0
0
0
3
1
3
3
13
3
10
8
6
0
10
8
6
1
0
0
3
7,140
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/stat_ops.py
benchmarks.stat_ops.SeriesMultiIndexOps
import pandas as pd import numpy as np class SeriesMultiIndexOps: params = [ops] param_names = ['op'] def setup(self, op): levels = [np.arange(10), np.arange(100), np.arange(100)] codes = [np.arange(10).repeat(10000), np.tile(np.arange(100).repeat(100), 10), np.tile(np.tile(np.arange(100),...
class SeriesMultiIndexOps: def setup(self, op): pass def time_op(self, op): pass
3
0
6
0
6
0
1
0
0
1
0
0
2
1
2
2
17
2
15
10
12
0
11
10
8
1
0
0
2
7,141
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/stat_ops.py
benchmarks.stat_ops.SeriesOps
import numpy as np import pandas as pd class SeriesOps: params = [ops, ['float', 'int']] param_names = ['op', 'dtype'] def setup(self, op, dtype): s = pd.Series(np.random.randn(100000)).astype(dtype) self.s_func = getattr(s, op) def time_op(self, op, dtype): self.s_func()
class SeriesOps: def setup(self, op, dtype): pass def time_op(self, op, dtype): pass
3
0
3
0
3
0
1
0
0
1
0
0
2
1
2
2
10
2
8
7
5
0
8
7
5
1
0
0
2
7,142
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/strftime.py
benchmarks.strftime.BusinessHourStrftime
from pandas import offsets import pandas as pd class BusinessHourStrftime: timeout = 1500 params = [1000, 10000] param_names = ['nobs'] def setup(self, nobs): self.data = pd.DataFrame({'off': [offsets.BusinessHour()] * nobs}) def time_frame_offset_str(self, nobs): self.data['off']...
class BusinessHourStrftime: def setup(self, nobs): pass def time_frame_offset_str(self, nobs): pass def time_frame_offset_repr(self, nobs): pass
4
0
3
0
3
0
1
0
0
1
0
0
3
1
3
3
17
3
14
8
10
0
10
8
6
1
0
0
3
7,143
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/strftime.py
benchmarks.strftime.DatetimeStrftime
import numpy as np import pandas as pd class DatetimeStrftime: timeout = 1500 params = [1000, 10000] param_names = ['nobs'] def setup(self, nobs): d = '2018-11-29' dt = '2018-11-26 11:18:27.0' self.data = pd.DataFrame({'dt': [np.datetime64(dt)] * nobs, 'd': [np.datetime64(d)] *...
class DatetimeStrftime: def setup(self, nobs): pass def time_frame_date_to_str(self, nobs): pass def time_frame_date_formatting_default(self, nobs): pass def time_frame_date_formatting_default_explicit(self, nobs): pass def time_frame_date_formatting_custom(self...
12
0
3
0
3
0
1
0
0
1
0
0
11
1
11
11
45
11
34
18
22
0
28
18
16
1
0
0
11
7,144
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/strftime.py
benchmarks.strftime.PeriodStrftime
import pandas as pd import numpy as np class PeriodStrftime: timeout = 1500 params = ([1000, 10000], ['D', 'h']) param_names = ['nobs', 'freq'] def setup(self, nobs, freq): self.data = pd.DataFrame({'p': pd.period_range(start='2000-01-01', periods=nobs, freq=freq), 'r': [np.random.uniform()] *...
class PeriodStrftime: def setup(self, nobs, freq): pass def time_frame_period_to_str(self, nobs, freq): pass def time_frame_period_formatting_default(self, nobs, freq): pass def time_frame_period_formatting_default_explicit(self, nobs, freq): pass def time_frame...
8
1
4
0
4
0
1
0.03
0
1
0
0
7
2
7
7
37
7
29
13
21
1
23
13
15
3
0
1
9
7,145
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/strings.py
benchmarks.strings.Cat
import numpy as np from pandas import NA, Categorical, DataFrame, Index, Series, StringDtype class Cat: params = ([0, 3], [None, ','], [None, '-'], [0.0, 0.001, 0.15]) param_names = ['other_cols', 'sep', 'na_rep', 'na_frac'] def setup(self, other_cols, sep, na_rep, na_frac): N = 10 ** 5 d...
class Cat: def setup(self, other_cols, sep, na_rep, na_frac): pass def mask_gen(): pass def time_cat(self, other_cols, sep, na_rep, na_frac): pass
4
0
12
0
10
3
2
0.23
0
3
0
0
2
2
2
2
29
2
22
9
19
5
12
9
9
2
0
1
3
7,146
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/strings.py
benchmarks.strings.Construction
import numpy as np from pandas import NA, Categorical, DataFrame, Index, Series, StringDtype class Construction: params = (['series', 'frame', 'categorical_series'], ['str', 'string[python]', 'string[pyarrow]']) param_names = ['pd_type', 'dtype'] pd_mapping = {'series': Series, 'frame': DataFrame, 'categor...
class Construction: def setup(self, pd_type, dtype): pass def time_construction(self, pd_type, dtype): pass def peakmem_construction(self, pd_type, dtype): pass
4
0
5
0
5
0
2
0.05
0
2
0
0
3
1
3
3
26
3
22
10
18
1
15
10
11
4
0
1
6
7,147
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/strings.py
benchmarks.strings.Contains
class Contains(Dtypes): params = (Dtypes.params, [True, False]) param_names = ['dtype', 'regex'] def setup(self, dtype, regex): super().setup(dtype) def time_contains(self, dtype, regex): self.s.str.contains('A', regex=regex)
class Contains(Dtypes): def setup(self, dtype, regex): pass def time_contains(self, dtype, regex): pass
3
0
2
0
2
0
1
0
1
1
0
0
2
0
2
3
9
2
7
5
4
0
7
5
4
1
1
0
2
7,148
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/strings.py
benchmarks.strings.Dtypes
from pandas import NA, Categorical, DataFrame, Index, Series, StringDtype class Dtypes: params = ['str', 'string[python]', 'string[pyarrow]'] param_names = ['dtype'] def setup(self, dtype): try: self.s = Series(Index([f'i-{i}' for i in range(10000)], dtype=object)._values, dtype=dtype)...
class Dtypes: def setup(self, dtype): pass
2
0
8
0
8
0
2
0
0
5
0
6
1
1
1
1
12
1
11
6
9
0
8
5
6
2
0
1
2
7,149
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/strings.py
benchmarks.strings.Dummies
class Dummies(Dtypes): def setup(self, dtype): super().setup(dtype) N = len(self.s) // 5 self.s = self.s[:N].str.join('|') def time_get_dummies(self, dtype): self.s.str.get_dummies('|')
class Dummies(Dtypes): def setup(self, dtype): pass def time_get_dummies(self, dtype): pass
3
0
3
0
3
0
1
0
1
1
0
0
2
1
2
3
8
1
7
5
4
0
7
5
4
1
1
0
2
7,150
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/strings.py
benchmarks.strings.Encode
from pandas import NA, Categorical, DataFrame, Index, Series, StringDtype class Encode: def setup(self): self.ser = Series(Index([f'i-{i}' for i in range(10000)], dtype=object)) def time_encode_decode(self): self.ser.str.encode('utf-8').str.decode('utf-8')
class Encode: def setup(self): pass def time_encode_decode(self): pass
3
0
2
0
2
0
1
0
0
3
0
0
2
1
2
2
6
1
5
4
2
0
5
4
2
1
0
0
2
7,151
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/strings.py
benchmarks.strings.Extract
import warnings class Extract(Dtypes): params = (Dtypes.params, [True, False]) param_names = ['dtype', 'expand'] def setup(self, dtype, expand): super().setup(dtype) def time_extract_single_group(self, dtype, expand): with warnings.catch_warnings(record=True): self.s.str.e...
class Extract(Dtypes): def setup(self, dtype, expand): pass def time_extract_single_group(self, dtype, expand): pass
3
0
3
0
3
0
1
0
1
2
0
0
2
0
2
3
10
2
8
5
5
0
8
5
5
1
1
1
2
7,152
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/strings.py
benchmarks.strings.Iter
class Iter(Dtypes): def time_iter(self, dtype): for i in self.s: pass
class Iter(Dtypes): def time_iter(self, dtype): pass
2
0
3
0
3
0
2
0
1
0
0
0
1
0
1
2
4
0
4
3
2
0
4
3
2
2
1
1
2
7,153
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/strings.py
benchmarks.strings.Methods
import warnings class Methods(Dtypes): def time_center(self, dtype): self.s.str.center(100) def time_count(self, dtype): self.s.str.count('A') def time_endswith(self, dtype): self.s.str.endswith('A') def time_extract(self, dtype): with warnings.catch_warnings(record=...
class Methods(Dtypes): def time_center(self, dtype): pass def time_count(self, dtype): pass def time_endswith(self, dtype): pass def time_extract(self, dtype): pass def time_findall(self, dtype): pass def time_findall(self, dtype): pass ...
38
0
2
0
2
0
1
0
1
1
0
0
37
0
37
38
112
36
76
38
38
0
76
38
38
1
1
1
37
7,154
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/strings.py
benchmarks.strings.Repeat
from pandas import NA, Categorical, DataFrame, Index, Series, StringDtype import numpy as np class Repeat: params = ['int', 'array'] param_names = ['repeats'] def setup(self, repeats): N = 10 ** 5 self.s = Series(Index([f'i-{i}' for i in range(N)], dtype=object)) repeat = {'int': 1...
class Repeat: def setup(self, repeats): pass def time_repeat(self, repeats): pass
3
0
4
0
4
0
1
0
0
3
0
0
2
2
2
2
12
2
10
9
7
0
10
9
7
1
0
0
2
7,155
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/strings.py
benchmarks.strings.Slice
import numpy as np from pandas import NA, Categorical, DataFrame, Index, Series, StringDtype class Slice: def setup(self): self.s = Series(['abcdefg', np.nan] * 500000) def time_vector_slice(self): self.s.str[:5]
class Slice: def setup(self): pass def time_vector_slice(self): pass
3
0
3
0
2
1
1
0.2
0
1
0
0
2
1
2
2
7
1
5
4
2
1
5
4
2
1
0
0
2
7,156
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/strings.py
benchmarks.strings.Split
class Split(Dtypes): params = (Dtypes.params, [True, False]) param_names = ['dtype', 'expand'] def setup(self, dtype, expand): super().setup(dtype) self.s = self.s.str.join('--') def time_split(self, dtype, expand): self.s.str.split('--', expand=expand) def time_rsplit(sel...
class Split(Dtypes): def setup(self, dtype, expand): pass def time_split(self, dtype, expand): pass def time_rsplit(self, dtype, expand): pass
4
0
2
0
2
0
1
0
1
1
0
0
3
1
3
4
13
3
10
7
6
0
10
7
6
1
1
0
3
7,157
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/strings.py
benchmarks.strings.StringArrayConstruction
import numpy as np from pandas.arrays import StringArray from pandas import NA, Categorical, DataFrame, Index, Series, StringDtype class StringArrayConstruction: def setup(self): self.series_arr = np.array([str(i) * 10 for i in range(10 ** 5)], dtype=object) self.series_arr_nan = np.concatenate([s...
class StringArrayConstruction: def setup(self): pass def time_string_array_construction(self): pass def time_string_array_with_nan_construction(self): pass def peakmem_stringarray_construction(self): pass
5
0
2
0
2
0
1
0
0
3
0
0
4
2
4
4
13
3
10
7
5
0
10
7
5
1
0
0
4
7,158
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/timedelta.py
benchmarks.timedelta.DatetimeAccessor
from pandas import DataFrame, Series, timedelta_range class DatetimeAccessor: def setup_cache(self): N = 100000 series = Series(timedelta_range('1 days', periods=N, freq='h')) return series def time_dt_accessor(self, series): series.dt def time_timedelta_days(self, series...
class DatetimeAccessor: def setup_cache(self): pass def time_dt_accessor(self, series): pass def time_timedelta_days(self, series): pass def time_timedelta_seconds(self, series): pass def time_timedelta_microseconds(self, series): pass def time_time...
7
0
2
0
2
0
1
0
0
1
0
0
6
0
6
6
20
5
15
9
8
0
15
9
8
1
0
0
6
7,159
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/timedelta.py
benchmarks.timedelta.TimedeltaIndexing
from pandas import DataFrame, Series, timedelta_range class TimedeltaIndexing: def setup(self): self.index = timedelta_range(start='1985', periods=1000, freq='D') self.index2 = timedelta_range(start='1986', periods=1000, freq='D') self.series = Series(range(1000), index=self.index) ...
class TimedeltaIndexing: def setup(self): pass def time_get_loc(self): pass def time_shallow_copy(self): pass def time_series_loc(self): pass def time_align(self): pass def time_intersection(self): pass def time_union(self): pas...
9
0
2
0
2
0
1
0
0
2
0
0
8
4
8
8
27
7
20
13
11
0
20
13
11
1
0
0
8
7,160
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/timeseries.py
benchmarks.timeseries.AsOf
import numpy as np from datetime import timedelta from pandas import DataFrame, Series, date_range, period_range, timedelta_range class AsOf: params = ['DataFrame', 'Series'] param_names = ['constructor'] def setup(self, constructor): N = 10000 M = 10 rng = date_range(start='1/1/19...
class AsOf: def setup(self, constructor): pass def time_asof(self, constructor): pass def time_asof_nan(self, constructor): pass def time_asof_single(self, constructor): pass def time_asof_single_early(self, constructor): pass def time_asof_nan_sing...
7
0
5
0
5
0
1
0.29
0
2
0
0
6
7
6
6
46
6
31
20
24
9
28
20
21
1
0
0
6
7,161
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/timeseries.py
benchmarks.timeseries.DatetimeAccessor
from pandas import DataFrame, Series, date_range, period_range, timedelta_range import dateutil class DatetimeAccessor: params = [None, 'US/Eastern', 'UTC', dateutil.tz.tzutc()] param_names = 'tz' def setup(self, tz): N = 100000 self.series = Series(date_range(start='1/1/2000', periods=N, ...
class DatetimeAccessor: def setup(self, tz): pass def time_dt_accessor(self, tz): pass def time_dt_accessor_normalize(self, tz): pass def time_dt_accessor_month_name(self, tz): pass def time_dt_accessor_day_name(self, tz): pass def time_dt_accessor_...
9
0
2
0
2
0
1
0
0
1
0
0
8
1
8
8
28
8
20
13
11
0
20
13
11
1
0
0
8
7,162
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/timeseries.py
benchmarks.timeseries.DatetimeIndex
from pandas import DataFrame, Series, date_range, period_range, timedelta_range from datetime import timedelta import dateutil class DatetimeIndex: params = ['dst', 'repeated', 'tz_aware', 'tz_local', 'tz_naive'] param_names = ['index_type'] def setup(self, index_type): N = 100000 dtidxes ...
class DatetimeIndex: def setup(self, index_type): pass def time_add_timedelta(self, index_type): pass def time_normalize(self, index_type): pass def time_unique(self, index_type): pass def time_to_time(self, index_type): pass def time_get(self, inde...
11
0
3
0
3
0
1
0
0
1
0
0
10
1
10
10
45
10
35
16
24
0
25
16
14
1
0
0
10
7,163
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/timeseries.py
benchmarks.timeseries.InferFreq
from pandas.tseries.frequencies import infer_freq from pandas import DataFrame, Series, date_range, period_range, timedelta_range class InferFreq: params = [None, 'D', 'B'] param_names = ['freq'] def setup(self, freq): if freq is None: self.idx = date_range(start='1/1/1700', freq='D', ...
class InferFreq: def setup(self, freq): pass def time_infer_freq(self, freq): pass
3
0
4
0
4
0
2
0.09
0
0
0
0
2
1
2
2
14
2
11
6
8
1
10
6
7
2
0
1
3
7,164
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/timeseries.py
benchmarks.timeseries.Iteration
from pandas import DataFrame, Series, date_range, period_range, timedelta_range class Iteration: params = [date_range, period_range, timedelta_range] param_names = ['time_index'] def setup(self, time_index): N = 10 ** 6 if time_index is timedelta_range: self.idx = time_index(st...
class Iteration: def setup(self, time_index): pass def time_iter(self, time_index): pass def time_iter_preexit(self, time_index): pass
4
0
5
0
5
0
2
0
0
1
0
0
3
2
3
3
20
3
17
11
13
0
16
11
12
3
0
2
7
7,165
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/timeseries.py
benchmarks.timeseries.Lookup
from pandas import DataFrame, Series, date_range, period_range, timedelta_range class Lookup: def setup(self): N = 1500000 rng = date_range(start='1/1/2000', periods=N, freq='s') self.ts = Series(1, index=rng) self.lookup_val = rng[N // 2] def time_lookup_and_cleanup(self): ...
class Lookup: def setup(self): pass def time_lookup_and_cleanup(self): pass
3
0
4
0
4
0
1
0
0
1
0
0
2
2
2
2
10
1
9
7
6
0
9
7
6
1
0
0
2
7,166
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/timeseries.py
benchmarks.timeseries.ResampleDataFrame
from pandas import DataFrame, Series, date_range, period_range, timedelta_range import numpy as np class ResampleDataFrame: params = ['max', 'mean', 'min'] param_names = ['method'] def setup(self, method): rng = date_range(start='20130101', periods=100000, freq='50ms') df = DataFrame(np.ra...
class ResampleDataFrame: def setup(self, method): pass def time_method(self, method): pass
3
0
3
0
3
0
1
0
0
0
0
0
2
1
2
2
11
2
9
8
6
0
9
8
6
1
0
0
2
7,167
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/timeseries.py
benchmarks.timeseries.ResampleDatetetime64
from pandas import DataFrame, Series, date_range, period_range, timedelta_range class ResampleDatetetime64: def setup(self): rng3 = date_range(start='2000-01-01 00:00:00', end='2000-01-01 10:00:00', freq='555000us') self.dt_ts = Series(5, rng3, dtype='datetime64[ns]') def time_resample(self):...
class ResampleDatetetime64: def setup(self): pass def time_resample(self): pass
3
0
4
0
4
0
1
0.13
0
1
0
0
2
1
2
2
10
1
8
5
5
1
6
5
3
1
0
0
2
7,168
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/timeseries.py
benchmarks.timeseries.ResampleSeries
from pandas import DataFrame, Series, date_range, period_range, timedelta_range import numpy as np class ResampleSeries: params = (['period', 'datetime'], ['5min', '1D'], ['mean', 'ohlc']) param_names = ['index', 'freq', 'method'] def setup(self, index, freq, method): indexes = {'period': period_r...
class ResampleSeries: def setup(self, index, freq, method): pass def time_resample(self, index, freq, method): pass
3
0
5
0
5
0
1
0
0
1
0
0
2
1
2
2
15
2
13
9
10
0
10
9
7
1
0
0
2
7,169
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/timeseries.py
benchmarks.timeseries.ResetIndex
from pandas import DataFrame, Series, date_range, period_range, timedelta_range import numpy as np class ResetIndex: params = [None, 'US/Eastern'] param_names = 'tz' def setup(self, tz): idx = date_range(start='1/1/2000', periods=1000, freq='h', tz=tz) self.df = DataFrame(np.random.randn(1...
class ResetIndex: def setup(self, tz): pass def time_reset_datetimeindex(self, tz): pass
3
0
3
0
3
0
1
0
0
0
0
0
2
1
2
2
10
2
8
7
5
0
8
7
5
1
0
0
2
7,170
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/timeseries.py
benchmarks.timeseries.SortIndex
from pandas import DataFrame, Series, date_range, period_range, timedelta_range import numpy as np class SortIndex: params = [True, False] param_names = ['monotonic'] def setup(self, monotonic): N = 10 ** 5 idx = date_range(start='1/1/2000', periods=N, freq='s') self.s = Series(np....
class SortIndex: def setup(self, monotonic): pass def time_sort_index(self, monotonic): pass def time_get_slice(self, monotonic): pass
4
0
3
0
3
0
1
0
0
1
0
0
3
1
3
3
16
3
13
9
9
0
13
9
9
2
0
1
4
7,171
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/timeseries.py
benchmarks.timeseries.TimeDatetimeConverter
from pandas import DataFrame, Series, date_range, period_range, timedelta_range class TimeDatetimeConverter: def setup(self): N = 100000 self.rng = date_range(start='1/1/2000', periods=N, freq='min') def time_convert(self): DatetimeConverter.convert(self.rng, None, None)
class TimeDatetimeConverter: def setup(self): pass def time_convert(self): pass
3
0
3
0
3
0
1
0
0
1
0
0
2
1
2
2
7
1
6
5
3
0
6
5
3
1
0
0
2
7,172
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/timeseries.py
benchmarks.timeseries.TzLocalize
from pandas import DataFrame, Series, date_range, period_range, timedelta_range import dateutil class TzLocalize: params = [None, 'US/Eastern', 'UTC', dateutil.tz.tzutc()] param_names = 'tz' def setup(self, tz): dst_rng = date_range(start='10/29/2000 1:00:00', end='10/29/2000 1:59:59', freq='s') ...
class TzLocalize: def setup(self, tz): pass def time_infer_dst(self, tz): pass
3
0
6
0
6
0
1
0
0
0
0
0
2
1
2
2
17
2
15
7
12
0
11
7
8
1
0
0
2
7,173
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/tslibs/fields.py
benchmarks.tslibs.fields.TimeGetDateField
import numpy as np from .tslib import _sizes from pandas._libs.tslibs.fields import get_date_field, get_start_end_field, get_timedelta_field class TimeGetDateField: params = [_sizes, ['Y', 'M', 'D', 'h', 'm', 's', 'us', 'ns', 'doy', 'dow', 'woy', 'q', 'dim', 'is_leap_year']] param_names = ['size', 'field'] ...
class TimeGetDateField: def setup(self, size, field): pass def time_get_date_field(self, size, field): pass
3
0
3
0
3
0
1
0
0
0
0
0
2
1
2
2
28
2
26
7
23
0
8
7
5
1
0
0
2
7,174
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/tslibs/fields.py
benchmarks.tslibs.fields.TimeGetStartEndField
import numpy as np from pandas._libs.tslibs.fields import get_date_field, get_start_end_field, get_timedelta_field from .tslib import _sizes class TimeGetStartEndField: params = [_sizes, ['start', 'end'], ['month', 'quarter', 'year'], ['B', None, 'QS'], [12, 3, 5]] param_names = ['size', 'side', 'period', 'fre...
class TimeGetStartEndField: def setup(self, size, side, period, freqstr, month_kw): pass def time_get_start_end_field(self, size, side, period, freqstr, month_kw): pass
3
0
4
1
3
0
1
0
0
0
0
0
2
2
2
2
18
3
15
8
12
0
9
8
6
1
0
0
2
7,175
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/tslibs/fields.py
benchmarks.tslibs.fields.TimeGetTimedeltaField
import numpy as np from .tslib import _sizes from pandas._libs.tslibs.fields import get_date_field, get_start_end_field, get_timedelta_field class TimeGetTimedeltaField: params = [_sizes, ['seconds', 'microseconds', 'nanoseconds']] param_names = ['size', 'field'] def setup(self, size, field): arr ...
class TimeGetTimedeltaField: def setup(self, size, field): pass def time_get_timedelta_field(self, size, field): pass def time_get_timedelta_field_negative_td(self, size, field): pass
4
0
3
0
3
0
1
0
0
0
0
0
3
2
3
3
18
3
15
9
11
0
12
9
8
1
0
0
3
7,176
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/tslibs/normalize.py
benchmarks.tslibs.normalize.Normalize
from .tslib import _sizes, _tzs, tzlocal_obj import pandas as pd class Normalize: params = [_sizes, _tzs] param_names = ['size', 'tz'] def setup(self, size, tz): dti = pd.date_range('2016-01-01', periods=10, tz=tz).repeat(size // 10) self.i8data = dti.asi8 if size == 10 ** 6 and tz...
class Normalize: def setup(self, size, tz): pass def time_normalize_i8_timestamps(self, size, tz): pass def time_is_date_array_normalized(self, size, tz): pass
4
0
5
0
3
2
1
0.4
0
1
0
0
3
1
3
3
25
4
15
8
11
6
12
8
8
2
0
1
4
7,177
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/tslibs/offsets.py
benchmarks.tslibs.offsets.OffestDatetimeArithmetic
from datetime import datetime import numpy as np class OffestDatetimeArithmetic: params = offset_objs param_names = ['offset'] def setup(self, offset): self.date = datetime(2011, 1, 1) self.dt64 = np.datetime64('2011-01-01 09:00Z') def time_add_np_dt64(self, offset): offset + ...
class OffestDatetimeArithmetic: def setup(self, offset): pass def time_add_np_dt64(self, offset): pass def time_add_np_dt64(self, offset): pass def time_add_10(self, offset): pass def time_subtract(self, offset): pass def time_subtract_10(self, offs...
7
0
2
0
2
0
1
0
0
1
0
0
6
2
6
6
22
6
16
11
9
0
16
11
9
1
0
0
6
7,178
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/tslibs/offsets.py
benchmarks.tslibs.offsets.OnOffset
from datetime import datetime class OnOffset: params = offset_objs param_names = ['offset'] def setup(self, offset): self.dates = [datetime(2016, m, d) for m in [10, 11, 12] for d in [1, 2, 3, 28, 29, 30, 31] if not (m == 11 and d == 31)] def time_on_offset(self, offset): for date in ...
class OnOffset: def setup(self, offset): pass def time_on_offset(self, offset): pass
3
0
5
0
5
0
2
0
0
1
0
0
2
1
2
2
15
2
13
7
10
0
8
7
5
2
0
1
3
7,179
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/tslibs/period.py
benchmarks.tslibs.period.PeriodConstructor
from pandas._libs.tslibs.period import Period, periodarr_to_dt64arr from pandas.tseries.frequencies import to_offset class PeriodConstructor: params = [['D'], [True, False]] param_names = ['freq', 'is_offset'] def setup(self, freq, is_offset): if is_offset: self.freq = to_offset(freq) ...
class PeriodConstructor: def setup(self, freq, is_offset): pass def time_period_constructor(self, freq, is_offset): pass
3
0
4
0
4
0
2
0
0
0
0
0
2
1
2
2
12
2
10
6
7
0
9
6
6
2
0
1
3
7,180
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/tslibs/period.py
benchmarks.tslibs.period.PeriodProperties
from pandas._libs.tslibs.period import Period, periodarr_to_dt64arr class PeriodProperties: params = (['M', 'min'], ['year', 'month', 'day', 'hour', 'minute', 'second', 'is_leap_year', 'quarter', 'qyear', 'week', 'daysinmonth', 'dayofweek', 'dayofyear', 'start_time', 'end_time']) param_names = ['freq', 'attr']...
class PeriodProperties: def setup(self, freq, attr): pass def time_property(self, freq, attr): pass
3
0
2
0
2
0
1
0
0
0
0
0
2
1
2
2
28
2
26
6
23
0
7
6
4
1
0
0
2
7,181
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/tslibs/period.py
benchmarks.tslibs.period.PeriodUnaryMethods
from pandas._libs.tslibs.period import Period, periodarr_to_dt64arr class PeriodUnaryMethods: params = ['M', 'min'] param_names = ['freq'] def setup(self, freq): self.per = Period('2012-06-01', freq=freq) if freq == 'M': self.default_fmt = '%Y-%m' elif freq == 'min': ...
class PeriodUnaryMethods: def setup(self, freq): pass def time_to_timestamp(self, freq): pass def time_now(self, freq): pass def time_asfreq(self, freq): pass def time_str(self, freq): pass def time_repr(self, freq): pass def time_strft...
10
0
2
0
2
0
1
0
0
1
0
0
9
2
9
9
34
9
25
14
15
0
24
14
14
3
0
1
11
7,182
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/tslibs/period.py
benchmarks.tslibs.period.TimeDT64ArrToPeriodArr
from .tslib import _sizes, _tzs, tzlocal_obj import numpy as np class TimeDT64ArrToPeriodArr: params = [_sizes, _freq_ints, _tzs] param_names = ['size', 'freq', 'tz'] def setup(self, size, freq, tz): if size == 10 ** 6 and tz is tzlocal_obj: raise NotImplementedError arr = np.a...
class TimeDT64ArrToPeriodArr: def setup(self, size, freq, tz): pass def time_dt64arr_to_periodarr(self, size, freq, tz): pass
3
0
7
1
4
3
2
0.36
0
1
0
0
2
1
2
2
22
3
14
7
11
5
10
7
7
2
0
1
3
7,183
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/tslibs/period.py
benchmarks.tslibs.period.TimePeriodArrToDT64Arr
from .tslib import _sizes, _tzs, tzlocal_obj import numpy as np from pandas._libs.tslibs.period import Period, periodarr_to_dt64arr class TimePeriodArrToDT64Arr: params = [_sizes, _freq_ints] param_names = ['size', 'freq'] def setup(self, size, freq): arr = np.arange(10, dtype='i8').repeat(size //...
class TimePeriodArrToDT64Arr: def setup(self, size, freq): pass def time_periodarray_to_dt64arr(self, size, freq): pass
3
0
3
0
3
0
1
0
0
0
0
0
2
1
2
2
13
2
11
7
8
0
8
7
5
1
0
0
2
7,184
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/tslibs/resolution.py
benchmarks.tslibs.resolution.TimeResolution
import numpy as np from .tslib import _sizes, _tzs, tzlocal_obj class TimeResolution: params = (['D', 'h', 'm', 's', 'us', 'ns'], _sizes, _tzs) param_names = ['unit', 'size', 'tz'] def setup(self, unit, size, tz): if size == 10 ** 6 and tz is tzlocal_obj: raise NotImplementedError ...
class TimeResolution: def setup(self, unit, size, tz): pass def time_get_resolution(self, unit, size, tz): pass
3
0
5
1
4
1
2
0.07
0
1
0
0
2
1
2
2
19
3
15
7
12
1
11
7
8
2
0
1
3
7,185
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/tslibs/timedelta.py
benchmarks.tslibs.timedelta.TimedeltaConstructor
import datetime from pandas import Timedelta import numpy as np class TimedeltaConstructor: def setup(self): self.nptimedelta64 = np.timedelta64(3600) self.dttimedelta = datetime.timedelta(seconds=3600) self.td = Timedelta(3600, unit='s') def time_from_int(self): Timedelta(123...
class TimedeltaConstructor: def setup(self): pass def time_from_int(self): pass def time_from_unit(self): pass def time_from_components(self): pass def time_from_datetime_timedelta(self): pass def time_from_np_timedelta(self): pass def ...
11
0
3
0
3
0
1
0
0
1
0
0
10
3
10
10
40
9
31
14
20
0
23
14
12
1
0
0
10
7,186
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/tslibs/timedelta.py
benchmarks.tslibs.timedelta.TimedeltaProperties
from pandas import Timedelta class TimedeltaProperties: def setup_cache(self): td = Timedelta(days=365, minutes=35, seconds=25, milliseconds=35) return td def time_timedelta_days(self, td): td.days def time_timedelta_seconds(self, td): td.seconds def time_timedelta_m...
class TimedeltaProperties: def setup_cache(self): pass def time_timedelta_days(self, td): pass def time_timedelta_seconds(self, td): pass def time_timedelta_microseconds(self, td): pass def time_timedelta_nanoseconds(self, td): pass
6
0
2
0
2
0
1
0
0
0
0
0
5
0
5
5
16
4
12
7
6
0
12
7
6
1
0
0
5
7,187
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/tslibs/timestamp.py
benchmarks.tslibs.timestamp.TimestampAcrossDst
import zoneinfo from datetime import datetime, timezone from pandas import Timestamp class TimestampAcrossDst: def setup(self): dt = datetime(2016, 3, 27, 1, fold=0) self.tzinfo = dt.astimezone(zoneinfo.ZoneInfo('Europe/Berlin')).tzinfo self.ts2 = Timestamp(dt) def time_replace_across...
class TimestampAcrossDst: def setup(self): pass def time_replace_across_dst(self): pass
3
0
3
0
3
0
1
0
0
2
0
0
2
2
2
2
8
1
7
6
4
0
7
6
4
1
0
0
2
7,188
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/tslibs/timestamp.py
benchmarks.tslibs.timestamp.TimestampConstruction
from pandas import Timestamp import numpy as np from datetime import datetime, timezone class TimestampConstruction: def setup(self): self.npdatetime64 = np.datetime64('2020-01-01 00:00:00') self.dttime_unaware = datetime(2020, 1, 1, 0, 0, 0) self.dttime_aware = datetime(2020, 1, 1, 0, 0, ...
class TimestampConstruction: def setup(self): pass def time_parse_iso8601_no_tz(self): pass def time_parse_iso8601_tz(self): pass def time_parse_dateutil(self): pass def time_parse_today(self): pass def time_parse_now(self): pass def ti...
13
0
2
0
2
0
1
0
0
2
0
0
12
4
12
12
39
11
28
17
15
0
28
17
15
1
0
0
12
7,189
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/tslibs/timestamp.py
benchmarks.tslibs.timestamp.TimestampOps
import zoneinfo from .tslib import _tzs from pandas import Timestamp class TimestampOps: params = _tzs param_names = ['tz'] def setup(self, tz): self.ts = Timestamp('2017-08-25 08:16:14', tz=tz) def time_replace_tz(self, tz): self.ts.replace(tzinfo=zoneinfo.ZoneInfo('US/Eastern')) ...
class TimestampOps: def setup(self, tz): pass def time_replace_tz(self, tz): pass def time_replace_None(self, tz): pass def time_to_pydatetime(self, tz): pass def time_normalize(self, tz): pass def time_tz_convert(self, tz): pass def ti...
11
0
2
0
2
0
1
0
0
1
0
0
10
1
10
10
35
10
25
14
14
0
25
14
14
2
0
1
12
7,190
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/tslibs/timestamp.py
benchmarks.tslibs.timestamp.TimestampProperties
from .tslib import _tzs from pandas import Timestamp class TimestampProperties: params = [_tzs] param_names = ['tz'] def setup(self, tz): self.ts = Timestamp('2017-08-25 08:16:14', tzinfo=tz) def time_tz(self, tz): self.ts.tz def time_dayofweek(self, tz): self.ts.dayofwee...
class TimestampProperties: def setup(self, tz): pass def time_tz(self, tz): pass def time_dayofweek(self, tz): pass def time_dayofyear(self, tz): pass def time_week(self, tz): pass def time_quarter(self, tz): pass def time_days_in_month...
18
0
2
0
2
0
1
0
0
0
0
0
17
1
17
17
54
17
37
21
19
0
37
21
19
1
0
0
17
7,191
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/tslibs/tslib.py
benchmarks.tslibs.tslib.TimeIntsToPydatetime
import numpy as np class TimeIntsToPydatetime: params = (['time', 'date', 'datetime', 'timestamp'], _sizes, _tzs) param_names = ['box', 'size', 'tz'] def setup(self, box, size, tz): if box == 'date' and tz is not None: raise NotImplementedError if size == 10 ** 6 and tz is _tzs...
class TimeIntsToPydatetime: def setup(self, box, size, tz): pass def time_ints_to_pydatetime(self, box, size, tz): pass
3
0
6
1
5
2
2
0.31
0
1
0
0
2
1
2
2
22
3
16
7
13
5
12
7
9
3
0
1
4
7,192
pandas-dev/pandas
pandas-dev_pandas/asv_bench/benchmarks/tslibs/tz_convert.py
benchmarks.tslibs.tz_convert.TimeTZConvert
from datetime import timezone import numpy as np from .tslib import _sizes, _tzs, tzlocal_obj from pandas._libs.tslibs.tzconversion import tz_localize_to_utc class TimeTZConvert: params = [_sizes, [x for x in _tzs if x is not None]] param_names = ['size', 'tz'] def setup(self, size, tz): if size =...
class TimeTZConvert: def setup(self, size, tz): pass def time_tz_convert_from_utc(self, size, tz): pass def time_tz_localize_to_utc(self, size, tz): pass
4
0
7
0
4
2
2
0.39
0
2
0
0
3
1
3
3
29
4
18
8
14
7
14
8
10
2
0
1
5
7,193
pandas-dev/pandas
pandas-dev_pandas/doc/source/conf.py
conf.AccessorAttributeDocumenter
from sphinx.ext.autodoc import AttributeDocumenter, Documenter, MethodDocumenter class AccessorAttributeDocumenter(AccessorLevelDocumenter, AttributeDocumenter): objtype = 'accessorattribute' directivetype = 'attribute' priority = 0.6
class AccessorAttributeDocumenter(AccessorLevelDocumenter, AttributeDocumenter): pass
1
0
0
0
0
0
0
0.5
2
0
0
0
0
0
0
1
7
1
4
4
3
2
4
4
3
0
2
0
0
7,194
pandas-dev/pandas
pandas-dev_pandas/doc/source/conf.py
conf.AccessorCallableDocumenter
from sphinx.ext.autodoc import AttributeDocumenter, Documenter, MethodDocumenter class AccessorCallableDocumenter(AccessorLevelDocumenter, MethodDocumenter): """ This documenter lets us removes .__call__ from the method signature for callable accessors like Series.plot """ objtype = 'accessorcallab...
class AccessorCallableDocumenter(AccessorLevelDocumenter, MethodDocumenter): ''' This documenter lets us removes .__call__ from the method signature for callable accessors like Series.plot ''' def format_name(self): pass
2
1
2
0
2
0
1
0.83
2
0
0
0
1
0
1
2
14
3
6
5
4
5
6
5
4
1
2
0
1
7,195
pandas-dev/pandas
pandas-dev_pandas/doc/source/conf.py
conf.AccessorDocumenter
from sphinx.ext.autodoc import AttributeDocumenter, Documenter, MethodDocumenter class AccessorDocumenter(MethodDocumenter): """ Specialized Documenter subclass for accessors. """ objtype = 'accessor' directivetype = 'method' priority = 0.6 def format_signature(self) -> str: return...
class AccessorDocumenter(MethodDocumenter): ''' Specialized Documenter subclass for accessors. ''' def format_signature(self) -> str: pass
2
1
4
0
2
2
1
1
1
1
0
0
1
0
1
1
15
3
6
5
4
6
6
5
4
1
1
0
1
7,196
pandas-dev/pandas
pandas-dev_pandas/doc/source/conf.py
conf.AccessorLevelDocumenter
from sphinx.ext.autodoc import AttributeDocumenter, Documenter, MethodDocumenter import sphinx class AccessorLevelDocumenter(Documenter): """ Specialized Documenter subclass for objects on accessor level (methods, attributes). """ def resolve_name(self, modname, parents, path, base): if mo...
class AccessorLevelDocumenter(Documenter): ''' Specialized Documenter subclass for objects on accessor level (methods, attributes). ''' def resolve_name(self, modname, parents, path, base): pass
2
1
32
0
22
10
8
1
1
0
0
3
1
0
1
1
47
1
23
5
21
23
21
5
19
8
1
3
8
7,197
pandas-dev/pandas
pandas-dev_pandas/doc/source/conf.py
conf.AccessorMethodDocumenter
from sphinx.ext.autodoc import AttributeDocumenter, Documenter, MethodDocumenter class AccessorMethodDocumenter(AccessorLevelDocumenter, MethodDocumenter): objtype = 'accessormethod' directivetype = 'method' priority = 0.6
class AccessorMethodDocumenter(AccessorLevelDocumenter, MethodDocumenter): pass
1
0
0
0
0
0
0
0.25
2
0
0
0
0
0
0
1
6
1
4
4
3
1
4
4
3
0
2
0
0
7,198
pandas-dev/pandas
pandas-dev_pandas/doc/source/conf.py
conf.PandasAutosummary
from sphinx.ext.autosummary import Autosummary from sphinx.ext.autosummary import _import_by_name from numpydoc.docscrape import NumpyDocString class PandasAutosummary(Autosummary): """ This alternative autosummary class lets us override the table summary for Series.plot and DataFrame.plot in the API docs....
class PandasAutosummary(Autosummary): ''' This alternative autosummary class lets us override the table summary for Series.plot and DataFrame.plot in the API docs. ''' def _replace_pandas_items(self, display_name, sig, summary, real_name): pass @staticmethod def _is_deprecated(real...
6
1
7
0
7
1
2
0.21
1
2
0
0
3
0
4
4
39
4
29
12
23
6
27
11
22
3
1
2
9
7,199
pandas-dev/pandas
pandas-dev_pandas/doc/sphinxext/contributors.py
contributors.ContributorsDirective
from docutils import nodes import git from announce import build_components from docutils.parsers.rst import Directive class ContributorsDirective(Directive): required_arguments = 1 name = 'contributors' def run(self): range_ = self.arguments[0] if range_.endswith('x..HEAD'): r...
class ContributorsDirective(Directive): def run(self): pass
2
0
25
3
22
0
4
0
1
0
0
0
1
0
1
1
29
4
25
11
23
0
20
10
18
4
1
2
4