-
Notifications
You must be signed in to change notification settings - Fork 81
Doc update #385
Doc update #385
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| name: Deploy Doc | ||
| on: | ||
| # Allows you to run this workflow manually from the Actions tab | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Setup Python environment | ||
| uses: actions/setup-python@v2 | ||
| with: | ||
| python-version: 3.7 | ||
|
|
||
| - name: Check out source repository | ||
| uses: actions/checkout@v2 | ||
| with: | ||
| ref: "release/0.1.0" | ||
| submodules: recursive | ||
|
|
||
| - name: Install TorchArrow | ||
| run: | | ||
| pip install --pre torcharrow -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html | ||
|
|
||
| - name: Build the docs | ||
| run: | | ||
| cd ./docs | ||
| pip install -r requirements.txt --user | ||
| make html | ||
| cd .. | ||
|
|
||
| - name: Deploy Docs on Push | ||
| uses: JamesIves/github-pages-deploy-action@v4.2.5 | ||
| with: | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
| branch: gh-pages # The branch the action should deploy to. | ||
| folder: docs/build/html # The folder the action should deploy. | ||
| target-folder: 0.1.0 | ||
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -3,8 +3,8 @@ | |||||||
| torcharrow.Column | ||||||||
| ========================== | ||||||||
|
|
||||||||
| A :class:`torcharrow.Column` is a 1-dimension torch.Tensor like data structure containing | ||||||||
| elements of a single data type. It also supports non-numeric types such as string, | ||||||||
| A :class:`torcharrow.Column` is a 1-dimension torch.Tensor like data structure containing | ||||||||
| elements of a single data type. It also supports non-numeric types such as string, | ||||||||
| list, struct. | ||||||||
|
|
||||||||
| Data types | ||||||||
|
|
@@ -40,6 +40,7 @@ Column class reference | |||||||
| .. autosummary:: | ||||||||
| :toctree: generated | ||||||||
| :nosignatures: | ||||||||
| :template: class.rst | ||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You may want to check if the output page looks as you expect and edit the docstrings or template.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yep it looks the same to me with or without haha. |
||||||||
|
|
||||||||
| Column.head | ||||||||
| Column.tail | ||||||||
|
|
@@ -63,7 +64,7 @@ Column class reference | |||||||
| Column.to_arrow | ||||||||
| Column.to_tensor | ||||||||
| Column.to_pylist | ||||||||
| Column.to_pandas | ||||||||
| Column.to_pandas | ||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. separate to this PR -- looks like the current Pandas conversion is not efficient (e.g. it gets the element into Python format, then convert into Pandas format...): torcharrow/torcharrow/icolumn.py Lines 1104 to 1106 in f557525
Maybe we should use something like |
||||||||
|
|
||||||||
|
|
||||||||
| NumericalColumn class reference | ||||||||
|
|
@@ -73,6 +74,7 @@ NumericalColumn class reference | |||||||
| .. autosummary:: | ||||||||
| :toctree: generated | ||||||||
| :nosignatures: | ||||||||
| :template: class.rst | ||||||||
|
|
||||||||
| NumericalColumn.abs | ||||||||
| NumericalColumn.ceil | ||||||||
|
|
@@ -96,42 +98,44 @@ StringColumn class reference | |||||||
| .. autosummary:: | ||||||||
| :toctree: generated | ||||||||
| :nosignatures: | ||||||||
| :template: class.rst | ||||||||
|
|
||||||||
| istring_column.StringMethods.length | ||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. as a follow-up, maybe we should rename (btw, how does Pandas render doc or implement
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this how pandas implemented it? https://github.com/pandas-dev/pandas/blob/main/pandas/core/series.py#L5851 |
||||||||
| istring_column.StringMethods.slice | ||||||||
| istring_column.StringMethods.split | ||||||||
| istring_column.StringMethods.strip | ||||||||
|
|
||||||||
| istring_column.StringMethods.isalpha | ||||||||
| istring_column.StringMethods.isnumeric | ||||||||
| istring_column.StringMethods.isalnum | ||||||||
| istring_column.StringMethods.isdigit | ||||||||
| istring_column.StringMethods.isdecimal | ||||||||
| istring_column.StringMethods.isspace | ||||||||
| istring_column.StringMethods.islower | ||||||||
| istring_column.StringMethods.isupper | ||||||||
| istring_column.StringMethods.istitle | ||||||||
|
|
||||||||
| istring_column.StringMethods.lower | ||||||||
| istring_column.StringMethods.upper | ||||||||
|
|
||||||||
| istring_column.StringMethods.startswith | ||||||||
| istring_column.StringMethods.endswith | ||||||||
| istring_column.StringMethods.count | ||||||||
| istring_column.StringMethods.find | ||||||||
| istring_column.StringMethods.replace | ||||||||
| istring_column.StringMethods.match | ||||||||
| istring_column.StringMethods.contains | ||||||||
| istring_column.StringMethods.findall | ||||||||
|
|
||||||||
| torcharrow.istring_column.StringMethods.length | ||||||||
| torcharrow.istring_column.StringMethods.slice | ||||||||
| torcharrow.istring_column.StringMethods.split | ||||||||
| torcharrow.istring_column.StringMethods.strip | ||||||||
|
|
||||||||
| torcharrow.istring_column.StringMethods.isalpha | ||||||||
| torcharrow.istring_column.StringMethods.isnumeric | ||||||||
| torcharrow.istring_column.StringMethods.isalnum | ||||||||
| torcharrow.istring_column.StringMethods.isdigit | ||||||||
| torcharrow.istring_column.StringMethods.isdecimal | ||||||||
| torcharrow.istring_column.StringMethods.isspace | ||||||||
| torcharrow.istring_column.StringMethods.islower | ||||||||
| torcharrow.istring_column.StringMethods.isupper | ||||||||
| torcharrow.istring_column.StringMethods.istitle | ||||||||
|
|
||||||||
| torcharrow.istring_column.StringMethods.lower | ||||||||
| torcharrow.istring_column.StringMethods.upper | ||||||||
|
|
||||||||
| torcharrow.istring_column.StringMethods.startswith | ||||||||
| torcharrow.istring_column.StringMethods.endswith | ||||||||
| torcharrow.istring_column.StringMethods.count | ||||||||
| torcharrow.istring_column.StringMethods.find | ||||||||
| torcharrow.istring_column.StringMethods.replace | ||||||||
| torcharrow.istring_column.StringMethods.match | ||||||||
| torcharrow.istring_column.StringMethods.contains | ||||||||
| torcharrow.istring_column.StringMethods.findall | ||||||||
|
|
||||||||
| ListColumn class reference | ||||||||
| ----------------------------------- | ||||||||
| .. class:: ListColumn() | ||||||||
|
|
||||||||
| .. autosummary:: | ||||||||
| :toctree: generated | ||||||||
| :nosignatures: | ||||||||
| :template: class.rst | ||||||||
|
|
||||||||
| torcharrow.ilist_column.ListMethods.length | ||||||||
| torcharrow.ilist_column.ListMethods.slice | ||||||||
| torcharrow.ilist_column.ListMethods.vmap | ||||||||
| ilist_column.ListMethods.length | ||||||||
| ilist_column.ListMethods.slice | ||||||||
| ilist_column.ListMethods.vmap | ||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,6 +25,7 @@ DataFrame Class and General APIs | |
| .. autosummary:: | ||
| :toctree: generated | ||
| :nosignatures: | ||
| :template: class.rst | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I copied the
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. me either ... but seems no harm to leave it here. |
||
|
|
||
| DataFrame.head | ||
| DataFrame.tail | ||
|
|
@@ -42,6 +43,7 @@ Functional API | |
| .. autosummary:: | ||
| :toctree: generated | ||
| :nosignatures: | ||
| :template: function.rst | ||
|
|
||
| DataFrame.map | ||
| DataFrame.filter | ||
|
|
@@ -54,6 +56,7 @@ Relational API | |
| .. autosummary:: | ||
| :toctree: generated | ||
| :nosignatures: | ||
| :template: function.rst | ||
|
|
||
| DataFrame.select | ||
| DataFrame.where | ||
|
|
@@ -64,6 +67,7 @@ Data Cleaning | |
| .. autosummary:: | ||
| :toctree: generated | ||
| :nosignatures: | ||
| :template: function.rst | ||
|
|
||
| DataFrame.fill_null | ||
| DataFrame.drop_null | ||
|
|
@@ -74,6 +78,7 @@ Conversions | |
| .. autosummary:: | ||
| :toctree: generated | ||
| :nosignatures: | ||
| :template: function.rst | ||
|
|
||
| DataFrame.to_arrow | ||
| DataFrame.to_tensor | ||
|
|
@@ -85,6 +90,7 @@ Statistics | |
| .. autosummary:: | ||
| :toctree: generated | ||
| :nosignatures: | ||
| :template: function.rst | ||
|
|
||
| DataFrame.min | ||
| DataFrame.max | ||
|
|
@@ -100,5 +106,6 @@ Arithmtic Operations | |
| .. autosummary:: | ||
| :toctree: generated | ||
| :nosignatures: | ||
| :template: function.rst | ||
|
|
||
| DataFrame.log | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the schedule make sure we can get the nightly build on the same day? ^_^
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there's no guarantee --- depending on which one runs first. I'm actually thinking to change this one to manual run only, since it writes to the "release" folder and shouldn't be needed to run nightly. But in this case, we'll need to be careful which version of torcharrow build it installs. Here I'm using the nightly build because that's the one available, but ideally I should use a RC build, which is currently not uploaded anywhere.
On the other hand, we can probably leave a build and deploy doc section to one of the nightly builds, and make sure it uploads the doc to the "main" folder (like torchdata).
But yeah this still needs some tweaks.