Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pytools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andreas Klöckner
pytools
Commits
dd0f1c0c
Commit
dd0f1c0c
authored
4 years ago
by
Matthias Diener
Browse files
Options
Downloads
Patches
Plain Diff
add to docs
parent
3df96340
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/reference.rst
+1
-0
1 addition, 0 deletions
doc/reference.rst
pytools/datatable.py
+13
-4
13 additions, 4 deletions
pytools/datatable.py
with
14 additions
and
4 deletions
doc/reference.rst
+
1
−
0
View file @
dd0f1c0c
.. automodule:: pytools
.. automodule:: pytools.datatable
This diff is collapsed.
Click to expand it.
pytools/datatable.py
+
13
−
4
View file @
dd0f1c0c
...
...
@@ -2,6 +2,9 @@ from pytools import Record
__doc__
=
"""
An in-memory relational database table
======================================
.. autoclass:: DataTable
"""
...
...
@@ -11,14 +14,20 @@ class Row(Record):
class
DataTable
:
"""
An in-memory relational database table.
"""
"""
An in-memory relational database table.
.. automethod:: __init__
.. automethod:: copy
.. automethod:: deep_copy
.. automethod:: join
"""
def
__init__
(
self
,
column_names
,
column_data
=
None
):
"""
Construct a new table, with the given C{column_names}.
@
arg column_names: An indexable of column name strings.
@
arg column_data: None or a list of tuples of the same length as
C{column_names} indicating an initial set of data.
:
arg column_names: An indexable of column name strings.
:
arg column_data: None or a list of tuples of the same length as
C{column_names} indicating an initial set of data.
"""
if
column_data
is
None
:
self
.
data
=
[]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment