zero323 commented on a change in pull request #35296:
URL: https://github.com/apache/spark/pull/35296#discussion_r791266439
##########
File path: python/pyspark/pandas/generic.py
##########
@@ -889,6 +889,7 @@ def to_json(
lines: bool = True,
partition_cols: Optional[Union[str, List[str]]] = None,
index_col: Optional[Union[str, List[str]]] = None,
+ ignoreNullFields: bool = False,
Review comment:
If we plan to have more Pandas-specific defaults, we could also merge
options with defaults dict:
```python
def to_json(
self,
...,
**options: Any,
) -> Optional[str]:
...
default_options: Dict[str, Any] = {"ignoreNullFields": False}
options = {**default_options, **options}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]