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

df.corr should add additional argument to handle string data #222

Closed
wants to merge 1 commit into from

Conversation

tunglinwood
Copy link

  1. (Minor) add !pip install packages including statsmodels , folium, and most important mlpack to avoid errors if user try on Jupyter notebook online.
  2. (Major)since pandas version 2.0.0 now you need to add numeric_only=True param to avoid the issue

Copy link

mlpack-bot bot commented Mar 12, 2024

Thanks for opening your first pull request in this repository! Someone will review it when they have a chance. In the mean time, please be sure that you've handled the following things, to make the review process quicker and easier:

  • All code should follow the style guide
  • Documentation added for any new functionality
  • Tests added for any new functionality
  • Tests that are added follow the testing guide
  • Headers and license information added to the top of any new code files
  • HISTORY.md updated if the changes are big or user-facing
  • All CI checks should be passing

Thank you again for your contributions! 👍

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Copy link

Binder 👈 Launch a binder notebook on branch tunglinwood/examples/patch-1

@@ -96,6 +96,112 @@
"<h1><center>2. Data Preparation</center></h1><a id=5></a>"
Copy link
Member

@rcurtin rcurtin Apr 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MarkFischinger this seems to be a simpler solution to use in #224, any objection to using that instead?


Reply via ReviewNB

@rcurtin
Copy link
Member

rcurtin commented Apr 8, 2024

Hey @tunglinwood, I did not realize that both this PR and #224 were open for the same thing. I think that #224 is a more complete solution as it also fixes the other issues you pointed out in mlpack/mlpack#3655, but the fix for df.corr() here is cleaner in my opinion.

For the !pip install bit, I wouldn't mind hearing @zoq's opinions and others who have been more involved with the development of Python notebooks in the past. If we do it here, we should probably do it for all Python notebooks. But I think that the intention was that these could be run in mlpack Binder images, so mlpack and other dependencies would already be installed.

Copy link

mlpack-bot bot commented May 8, 2024

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions! 👍

@mlpack-bot mlpack-bot bot added the s: stale label May 8, 2024
@mlpack-bot mlpack-bot bot closed this May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants