question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

switch from pandas.util.testing to pandas.testing

See original GitHub issue

pandas.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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
kanderso-nrelcommented, Jul 9, 2020

If we’re bumping the minimum pandas in 0.8 then can we just go ahead and do the switch now?

Sure.

I was imagining a find/replace. I don’t see any advantage to adding it to conftest but let me know if I’m missing something.

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.

1reaction
wholmgrencommented, Feb 21, 2020

Looks like pandas.testing was added in pandas 0.20. https://github.com/pandas-dev/pandas/pull/16003

I 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found