Skip to content

Commit

Permalink
📝 Updated docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafalz13 committed Jun 20, 2024
1 parent 0e54b22 commit 17e00fe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- Added `na_values` parameter to `Sharepoint` class to parse `N/A` values coming from the excel file columns.
- Added `get_last_segment_from_url` function to sharepoint file.
- Added `validate` function to `viadot/utils.py`
- Fixed `Databricks.create_table_from_pandas()` failing to overwrite a table in some cases even with `replace="True"`
Expand Down
9 changes: 8 additions & 1 deletion src/viadot/sources/sharepoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,14 @@ def to_df(
tests (Dict[str], optional): A dictionary with optional list of tests
to verify the output dataframe. If defined, triggers the `validate`
function from utils. Defaults to None.
na_values (list[str] | None): NA values for excel file. Defaults to None.
na_values (list[str] | None): Additional strings to recognize as NA/NaN.
If list passed, the specific NA values for each column will be recognized.
Defaults to None.
If None then the "DEFAULT_NA_VALUES" is assigned list(" ", "#N/A", "#N/A N/A",
"#NA", "-1.#IND", "-1.#QNAN", "-NaN", "-nan", "1.#IND", "1.#QNAN",
"<NA>", "N/A", "NA", "NULL", "NaN", "None", "n/a", "nan", "null").
If list passed, the specific NA values for each column will be recognized.
Defaults to None.
kwargs (dict[str, Any], optional): Keyword arguments to pass to pd.ExcelFile.parse(). Note that
`nrows` is not supported.
Expand Down

0 comments on commit 17e00fe

Please sign in to comment.