switch from pandas.util.testing to pandas.testing
See original GitHub issuepandas.util.testing is deprecated and we’re supposed to switch to the functions in the public API at pandas.testing instead.
I’m not sure what the pandas version compatibility is for this. If there’s a problem, we could use try/except statements to handle earlier versions of pandas. Or we could just do nothing until the min pandas we support is high enough.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:5 (5 by maintainers)
Top Results From Across the Web
pandas.testing.assert_frame_equal - DataFrame
This function is intended to compare two DataFrames and output any differences. It is mostly intended for use in unit tests. Additional parameters...
Read more >pandas.util.testing is deprecated. Use the functions in ... - GitHub
FutureWarning: pandas.util.testing is deprecated. Use the functions in the public API at pandas.testing instead. #775.
Read more >4 Pandas Tricks that Most People Don't Know | Medium
In this case, there is a much easier way to do so. That is, using pandas.util.testing package to generate the sample data frame....
Read more >Testing Pandas Code - MungingData
Unit testing helps you write Pandas code that more modular and easier to refactor. It's especially important to test your core Pandas helper ......
Read more >Is there an alternative for the soon-to-be-deprecated pandas ...
The pandas.util.testing module has been deprecated. Use the public API in pandas.testing documented at Testing functions (GH16232).
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Sure.
Only advantage I see is that if pandas changes it again, we would only update one file instead of many. Seems unlikely. Find/replace is fine with me.
Looks like
pandas.testingwas added in pandas 0.20. https://github.com/pandas-dev/pandas/pull/16003I think we’re talking about going up to pandas 0.22 in pvlib 0.8, so let’s make this a pvlib 0.8 milestone.