Skip to content

s3.to_json ignores pandas_kwargs #1072

@adrigru

Description

@adrigru

Describe the bug

I have a pandas DataFrame that I want to write to an S3 bucket as .json.
According to the documentation, I should be able to pass Pandas arguments to the wr.s3.to_json() function.
However, none of the specified arguments actually work.

Environment

https://pastebin.com/raw/pwiTmUkF

To Reproduce

  1. Create a Pandas DataFrame
  2. Call wr.s3.to_json(path='s3://my-bucket/path/', df=my_df, dataset=True, mode='overwrite', orient='records', lines=True, double_precision=2)
  3. The file is created in the S3 as expected, however the orientation, lines, and double_precision arguments are not applied.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions