Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deprecation warning from pandas.read_json #2346

Closed
wants to merge 1 commit into from

Conversation

saitcakmak
Copy link
Contributor

Summary:
Addresses the following warning:

Passing literal json to 'read_json' is deprecated and will
be removed in a future version. To read from a literal string, wrap it in a 'StringIO' object.

Seen in dev API tutorial: https://ax.dev/tutorials/gpei_hartmann_developer.html

Differential Revision: D55978442

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Apr 10, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D55978442

saitcakmak added a commit to saitcakmak/Ax that referenced this pull request Apr 10, 2024
Summary:

Addresses the following warning:
```
Passing literal json to 'read_json' is deprecated and will
be removed in a future version. To read from a literal string, wrap it in a 'StringIO' object.
```

Seen in dev API tutorial: https://ax.dev/tutorials/gpei_hartmann_developer.html

Differential Revision: D55978442
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D55978442

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.91%. Comparing base (adcf3a4) to head (d4fe416).
Report is 7 commits behind head on main.

❗ Current head d4fe416 differs from pull request most recent head 4c1a25d. Consider uploading reports for the commit 4c1a25d to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2346   +/-   ##
=======================================
  Coverage   94.91%   94.91%           
=======================================
  Files         491      491           
  Lines       47788    47867   +79     
=======================================
+ Hits        45356    45434   +78     
- Misses       2432     2433    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Summary:

Addresses the following warning:
```
Passing literal json to 'read_json' is deprecated and will
be removed in a future version. To read from a literal string, wrap it in a 'StringIO' object.
```

Seen in dev API tutorial: https://ax.dev/tutorials/gpei_hartmann_developer.html

Reviewed By: mgarrard

Differential Revision: D55978442
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D55978442

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 415f84d.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants