Result schemas¶
Exact column order, index levels and dtype kinds of populated results, pinned by
tests/test_schema_contracts.py. Kinds are str, int, float, bool and datetime
(UTC); they hold on pandas 2 and 3. Shapes differ between Repository and ProjectDirectory and
between populated and empty results; both are listed as they are today.
Repository.commit_history()¶
Index: date (datetime)
UTC date index; includes a branch column.
Column |
Kind |
|---|---|
|
str |
|
str |
|
str |
|
str |
|
int |
|
int |
|
int |
|
int |
|
str |
|
str |
ProjectDirectory.commit_history()¶
Index: (unnamed integer index) (int)
date is a column; the integer index restarts at 0 for each repository; no branch column.
Column |
Kind |
|---|---|
|
str |
|
str |
|
str |
|
datetime |
|
str |
|
str |
|
int |
|
int |
|
int |
|
int |
Repository.file_change_history()¶
Index: date (datetime)
date is both the index and a column.
Column |
Kind |
|---|---|
|
str |
|
int |
|
int |
|
int |
|
str |
|
str |
|
str |
|
datetime |
|
str |
ProjectDirectory.file_change_history()¶
Index: (unnamed integer index) (int)
No lines column; date is a column on a default integer index.
Column |
Kind |
|---|---|
|
str |
|
datetime |
|
str |
|
str |
|
str |
|
str |
|
int |
|
int |
Repository.revs()¶
Index: (unnamed integer index) (int)
date is epoch seconds stored as an integer column.
Column |
Kind |
|---|---|
|
int |
|
str |
|
str |
ProjectDirectory.revs()¶
Index: (unnamed integer index) (int)
date is epoch seconds stored as a float column.
Column |
Kind |
|---|---|
|
str |
|
str |
|
float |
Repository.blame(by=’repository’)¶
Index: committer (str)
Column |
Kind |
|---|---|
|
int |
|
str |
ProjectDirectory.blame(by=’repository’)¶
Index: committer (str)
No repository column.
Column |
Kind |
|---|---|
|
int |
Repository.blame(by=’file’)¶
Index: committer (str), file (str)
Column |
Kind |
|---|---|
|
int |
|
str |
ProjectDirectory.blame(by=’file’)¶
Index: committer (str), file (str), repository (str)
repository is an index level, not a column.
Column |
Kind |
|---|---|
|
int |
Repository.punchcard()¶
Index: (unnamed integer index) (int)
Column |
Kind |
|---|---|
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
ProjectDirectory.punchcard()¶
Index: (unnamed integer index) (int)
Column |
Kind |
|---|---|
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
Repository.hours_estimate()¶
Index: (unnamed integer index) (int)
Column |
Kind |
|---|---|
|
str |
|
float |
|
str |
ProjectDirectory.hours_estimate()¶
Index: (unnamed integer index) (int)
Column |
Kind |
|---|---|
|
str |
|
float |
|
str |
Repository.file_detail()¶
Index: (unnamed integer index) (int)
file is a column.
Column |
Kind |
|---|---|
|
str |
|
int |
|
str |
|
str |
|
datetime |
|
str |
ProjectDirectory.file_detail()¶
Index: file (str), repository (str)
(file, repository) index; a stray index column of row numbers leaks through.
Column |
Kind |
|---|---|
|
int |
|
int |
|
str |
|
str |
|
datetime |
Repository.bus_factor(by=’repository’)¶
Index: (unnamed integer index) (int)
Column |
Kind |
|---|---|
|
str |
|
int |
ProjectDirectory.bus_factor(by=’projectd’)¶
Index: (unnamed integer index) (int)
Default grouping; the first column is named projectd.
Column |
Kind |
|---|---|
|
str |
|
int |
Repository.bus_factor(by=’file’)¶
Index: (unnamed integer index) (int)
Column |
Kind |
|---|---|
|
str |
|
int |
|
str |
ProjectDirectory.bus_factor(by=’file’)¶
Index: (unnamed integer index) (int)
Column |
Kind |
|---|---|
|
str |
|
int |
|
str |
ProjectDirectory.bus_factor(by=’repository’)¶
Index: (unnamed integer index) (int)
bus factor has object dtype.
Column |
Kind |
|---|---|
|
str |
|
object |
Empty results¶
Where the empty frame differs from the populated one:
Method |
Columns |
Index |
|---|---|---|
Repository.file_change_history |
|
(unnamed integer index) |
Repository.revs |
|
(unnamed integer index) |
Repository.tags |
|
(unnamed integer index) |
Repository.commits_in_tags |
|
(unnamed integer index) |
ProjectDirectory.revs |
|
(unnamed integer index) |
ProjectDirectory.tags |
(none) |
(unnamed integer index) |
ProjectDirectory.commits_in_tags |
|
(unnamed integer index) |