Hotspots
Files that are both large and changed often are where bugs tend to cluster and where refactoring pays off first. Each file of code in the current tree, tests included, is placed by its size and by the number of commits that changed it, under this name or one it had before; its hotspot score is changes × √lines. Documentation, vendored and generated files, and files without counted lines, such as binary files, are left out.
- Files Analyzed
- 1,796
- of 2,701 in the current tree
- Top 10 Files
- 33.7%
- of the total hotspot score
- Median File Size
- 176 lines
- half of the files are at least this large
- Median Changes
- 19 commits
- half of the files changed at least this often
Change frequency by file size
Each dot is a file; a bigger dot is a higher score. The dashed lines mark the median file size and the median number of changes: the large files that change often, in the top right, are in color. The 5 highest scores are numbered as in the list. Both axes are logarithmic.
Chart not shown: it is drawn with JavaScript, which is turned off or blocked on this page, as it is on Jenkins by default. How to show the charts
Highest scores
- 1pandas/core/frame.py20,584 lines · 3,424 changes
- 2pandas/core/generic.py13,117 lines · 2,284 changes
- 3pandas/core/series.py10,445 lines · 2,171 changes
- 4pandas/core/indexes/base.py9,407 lines · 1,499 changes
- 5pandas/core/groupby/groupby.py6,021 lines · 1,419 changes
- 6pandas/io/pytables.py6,809 lines · 871 changes
- 7pandas/core/indexes/multi.py5,450 lines · 744 changes
- 8pandas/core/indexing.py4,176 lines · 774 changes
Top hotspots
The files ranked by hotspot score: the larger a file is and the more often it changes, the higher it ranks. Authors is how many people have changed the file, bots aside, as on the Code Ownership page: a hotspot only one person has changed is also a bus-factor risk.
| File | Lines | Changes | Authors | Score | Bar |
|---|---|---|---|---|---|
| pandas/core/frame.py | 20,584 | 3,424 | 684 | 491,245.6 | |
| pandas/core/generic.py | 13,117 | 2,284 | 625 | 261,585.3 | |
| pandas/core/series.py | 10,445 | 2,171 | 391 | 221,877.9 | |
| pandas/core/indexes/base.py | 9,407 | 1,499 | 235 | 145,387.5 | |
| pandas/core/groupby/groupby.py | 6,021 | 1,419 | 258 | 110,107.5 | |
| pandas/io/pytables.py | 6,809 | 871 | 173 | 71,872.0 | |
| pandas/core/indexes/multi.py | 5,450 | 744 | 172 | 54,925.1 | |
| pandas/core/indexing.py | 4,176 | 774 | 154 | 50,017.4 | |
| pandas/core/indexes/datetimes.py | 2,971 | 898 | 166 | 48,947.2 | |
| pandas/tests/groupby/test_groupby.py | 3,148 | 869 | 163 | 48,757.0 |
Table: the 100 highest-scoring of 1,796 files
| File | Lines | Changes | Authors | Score | Bar |
|---|---|---|---|---|---|
| pandas/core/frame.py | 20,584 | 3,424 | 684 | 491,245.6 | |
| pandas/core/generic.py | 13,117 | 2,284 | 625 | 261,585.3 | |
| pandas/core/series.py | 10,445 | 2,171 | 391 | 221,877.9 | |
| pandas/core/indexes/base.py | 9,407 | 1,499 | 235 | 145,387.5 | |
| pandas/core/groupby/groupby.py | 6,021 | 1,419 | 258 | 110,107.5 | |
| pandas/io/pytables.py | 6,809 | 871 | 173 | 71,872.0 | |
| pandas/core/indexes/multi.py | 5,450 | 744 | 172 | 54,925.1 | |
| pandas/core/indexing.py | 4,176 | 774 | 154 | 50,017.4 | |
| pandas/core/indexes/datetimes.py | 2,971 | 898 | 166 | 48,947.2 | |
| pandas/tests/groupby/test_groupby.py | 3,148 | 869 | 163 | 48,757.0 | |
| pandas/_libs/tslibs/offsets.pyx | 8,763 | 459 | 74 | 42,967.4 | |
| pandas/core/internals/blocks.py | 2,653 | 777 | 80 | 40,021.2 | |
| pandas/core/groupby/generic.py | 4,360 | 591 | 117 | 39,023.9 | |
| pandas/core/arrays/categorical.py | 3,475 | 568 | 128 | 33,483.1 | |
| pandas/core/arrays/datetimes.py | 3,260 | 562 | 98 | 32,088.2 | |
| pandas/io/formats/format.py | 2,220 | 650 | 178 | 30,626.0 | |
| pandas/core/arrays/datetimelike.py | 2,607 | 598 | 79 | 30,533.2 | |
| pandas/tests/io/test_sql.py | 4,941 | 403 | 100 | 28,327.8 | |
| pandas/core/arrays/arrow/array.py | 5,259 | 390 | 52 | 28,282.4 | |
| pandas/core/resample.py | 3,290 | 492 | 141 | 28,220.4 | |
| pandas/core/internals/managers.py | 2,644 | 545 | 53 | 28,023.8 | |
| pandas/_libs/lib.pyx | 3,663 | 455 | 97 | 27,537.8 | |
| pandas/tests/plotting/frame/test_frame.py | 3,018 | 500 | 121 | 27,468.2 | |
| pandas/io/formats/style.py | 4,673 | 398 | 126 | 27,207.0 | |
| pandas/core/window/rolling.py | 3,639 | 427 | 127 | 25,758.4 | |
| pandas/core/arrays/sparse/array.py | 3,249 | 446 | 92 | 25,422.0 | |
| pandas/_libs/parsers.pyx | 4,668 | 371 | 78 | 25,347.7 | |
| pandas/tests/frame/test_constructors.py | 3,811 | 409 | 99 | 25,248.9 | |
| pandas/core/algorithms.py | 2,065 | 550 | 133 | 24,993.2 | |
| pandas/tests/reshape/merge/test_merge.py | 3,581 | 414 | 96 | 24,774.4 | |
| pandas/tests/tools/test_to_datetime.py | 5,036 | 338 | 85 | 23,986.1 | |
| pandas/core/dtypes/cast.py | 1,985 | 529 | 86 | 23,568.7 | |
| pandas/tests/io/formats/test_format.py | 2,501 | 464 | 137 | 23,204.6 | |
| pandas/io/stata.py | 4,006 | 364 | 103 | 23,038.6 | |
| pandas/_libs/tslibs/period.pyx | 3,769 | 371 | 68 | 22,776.5 | |
| pandas/core/reshape/merge.py | 3,400 | 389 | 112 | 22,682.4 | |
| pandas/tests/indexing/test_loc.py | 4,719 | 329 | 82 | 22,600.6 | |
| pandas/core/indexes/datetimelike.py | 1,749 | 540 | 81 | 22,583.4 | |
| pandas/_libs/tslibs/timestamps.pyx | 4,169 | 344 | 92 | 22,211.3 | |
| pandas/tests/io/pytables/test_store.py | 1,260 | 600 | 124 | 21,297.9 | |
| pandas/core/base.py | 1,759 | 507 | 136 | 21,263.8 | |
| pandas/core/indexes/period.py | 1,250 | 578 | 100 | 20,435.4 | |
| pandas/core/arrays/base.py | 3,686 | 335 | 70 | 20,338.7 | |
| pandas/tests/frame/test_reductions.py | 3,500 | 342 | 79 | 20,233.0 | |
| pandas/core/common.py | 738 | 704 | 111 | 19,125.0 | |
| pandas/_libs/tslibs/timedeltas.pyx | 3,402 | 326 | 87 | 19,014.5 | |
| pandas/tests/indexes/test_base.py | 2,175 | 407 | 82 | 18,981.2 | |
| pandas/tests/io/json/test_pandas.py | 2,925 | 349 | 91 | 18,875.1 | |
| pandas/conftest.py | 2,143 | 379 | 82 | 17,544.9 | |
| pandas/tests/reshape/test_pivot.py | 3,389 | 297 | 85 | 17,289.9 | |
| pandas/_libs/tslib.pyx | 814 | 605 | 99 | 17,261.1 | |
| pandas/core/indexes/interval.py | 1,900 | 392 | 78 | 17,086.9 | |
| pandas/core/nanops.py | 2,270 | 355 | 81 | 16,913.8 | |
| pandas/core/dtypes/dtypes.py | 2,584 | 332 | 83 | 16,876.6 | |
| pandas/tests/series/test_constructors.py | 2,347 | 345 | 80 | 16,713.8 | |
| pandas/tests/indexing/test_indexing.py | 1,282 | 464 | 77 | 16,613.5 | |
| pandas/tests/test_algos.py | 2,476 | 326 | 79 | 16,221.6 | |
| pandas/core/tools/datetimes.py | 1,624 | 393 | 104 | 15,837.5 | |
| pandas/tests/plotting/test_datetimelike.py | 3,128 | 283 | 54 | 15,827.8 | |
| pandas/core/arrays/period.py | 1,717 | 347 | 65 | 14,378.5 | |
| pandas/tests/io/test_stata.py | 2,831 | 265 | 58 | 14,099.9 | |
| pandas/io/parsers/readers.py | 3,728 | 229 | 65 | 13,982.1 | |
| pandas/tests/frame/indexing/test_indexing.py | 2,035 | 307 | 70 | 13,849.1 | |
| pandas/core/groupby/ops.py | 1,522 | 352 | 58 | 13,732.5 | |
| pandas/tests/tseries/offsets/test_offsets.py | 1,559 | 343 | 71 | 13,543.1 | |
| pandas/core/indexes/range.py | 1,804 | 308 | 64 | 13,081.8 | |
| pandas/plotting/_core.py | 2,552 | 257 | 127 | 12,983.0 | |
| pandas/core/arrays/interval.py | 2,114 | 280 | 64 | 12,873.9 | |
| pandas/core/arrays/timedeltas.py | 1,494 | 330 | 49 | 12,755.3 | |
| pandas/core/dtypes/common.py | 2,004 | 284 | 79 | 12,713.6 | |
| pandas/io/json/_json.py | 1,889 | 290 | 109 | 12,604.2 | |
| pandas/core/apply.py | 2,503 | 251 | 61 | 12,557.5 | |
| pandas/core/reshape/reshape.py | 1,159 | 368 | 96 | 12,528.2 | |
| pandas/tests/computation/test_eval.py | 2,414 | 250 | 71 | 12,283.1 | |
| pandas/core/arrays/masked.py | 2,360 | 244 | 36 | 11,853.5 | |
| pandas/core/strings/accessor.py | 4,978 | 168 | 64 | 11,853.2 | |
| pandas/core/indexes/timedeltas.py | 1,111 | 349 | 69 | 11,632.8 | |
| pandas/tests/internals/test_internals.py | 1,584 | 288 | 58 | 11,462.3 | |
| pyproject.toml | 680 | 430 | 80 | 11,213.0 | |
| pandas/io/excel/_base.py | 2,005 | 249 | 96 | 11,149.5 | |
| pandas/tests/extension/test_arrow.py | 1,026 | 343 | 51 | 10,986.7 | |
| pandas/core/indexes/category.py | 1,107 | 329 | 59 | 10,946.4 | |
| pandas/plotting/_matplotlib/core.py | 2,589 | 214 | 68 | 10,888.8 | |
| pandas/tests/apply/test_frame_apply.py | 2,579 | 206 | 65 | 10,461.5 | |
| pandas/tests/io/test_parquet.py | 1,760 | 247 | 63 | 10,362.2 | |
| pandas/io/common.py | 1,595 | 257 | 91 | 10,263.9 | |
| pandas/tests/dtypes/test_inference.py | 2,262 | 212 | 64 | 10,082.8 | |
| pandas/_libs/algos.pyx | 2,252 | 207 | 57 | 9,823.2 | |
| pandas/tests/frame/test_stack_unstack.py | 3,164 | 174 | 44 | 9,787.4 | |
| pandas/_libs/groupby.pyx | 2,454 | 196 | 45 | 9,709.4 | |
| pandas/core/reshape/pivot.py | 1,359 | 257 | 87 | 9,474.2 | |
| pandas/tests/arithmetic/test_datetime64.py | 2,700 | 179 | 31 | 9,301.1 | |
| pandas/tests/io/test_html.py | 1,852 | 215 | 68 | 9,252.5 | |
| pandas/tests/arithmetic/test_timedelta64.py | 2,629 | 180 | 28 | 9,229.3 | |
| pandas/_libs/index.pyx | 1,440 | 240 | 43 | 9,107.4 | |
| pandas/tests/frame/test_arithmetic.py | 2,518 | 175 | 44 | 8,781.4 | |
| pandas/tests/indexing/test_iloc.py | 2,634 | 171 | 52 | 8,776.1 | |
| pandas/_libs/src/parser/tokenizer.cpp | 2,596 | 172 | 45 | 8,763.6 | |
| pandas/tests/groupby/test_categorical.py | 2,355 | 177 | 59 | 8,589.5 | |
| pandas/tests/groupby/transform/test_transform.py | 1,806 | 201 | 50 | 8,541.9 |
How pandas compares with other Python open source projects →
How pandas ranks among Python open source projects by AI-assisted commits →
Generate this report for your own repository with gitstats-action · All Gallery reports
The smallest workflow
Publishes the report to GitHub Pages on every push to main: turn on Pages for the gh-pages branch.
# .github/workflows/gitstats.yml
name: GitStats Report
on:
push:
branches: [main]
permissions:
contents: write
jobs:
gitstats:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- uses: shenxianpeng/gitstats-action@v1
with:
deploy-to-pages: true