-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
Categorical.(get|from)_dummies #34426
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
Closed
Closed
Changes from 1 commit
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
b5ab7f2
Categorical (to|from)_dummies methods
clbarnes f937c96
Tests: Categorical.(to|from)_dummies
clbarnes dd14132
Add reference to Categorical.to_dummies to get_dummies
clbarnes 9dc9da5
whatsnew: add issue number to Categorical.(to|from)_dummies
clbarnes ac9cec2
Review comments for dummies tests
clbarnes 0459cb1
Review comments for dummies implementation
clbarnes 65e68c2
dummies review comments
clbarnes 1334026
User guide: Describe Categorical.(to|from)_dummies
clbarnes c2240b6
Fix user guide errors
clbarnes 66771bf
Fix numpy element from sequence error
clbarnes 4e769da
Test to_dummies column type cast
clbarnes fe002af
Test review comments
clbarnes 097f2c6
Review comments for implementation
clbarnes afe8eda
Fix doctest for missing values
clbarnes e78158e
xfail for Categorical from sparse
clbarnes 4fb1e5e
Fix tests
clbarnes 9fa5494
fix isna
clbarnes 61567fd
Explicit integer type cast
clbarnes 5d724cc
Test categorical <-> dummies roundtrip
clbarnes 1182ce5
more type casts
clbarnes 04ca72a
Add wiki link for dummy variables
clbarnes 6e4f71a
Remove deprecated numpy <v1.16 check
clbarnes a761baf
isort fix
clbarnes ed58c77
undo changes to whatsnew v1.1.0
clbarnes 741cf8f
whatsnew/v1.2.0: Categorical get/from dummies
clbarnes 6f199b6
Update user_guide/categorical docs
clbarnes 034f8e1
Reference Categorical.get_dummies in reshape.py
clbarnes b80f089
Categorical->dummies more like get_dummies
clbarnes 0eb936f
categorical tests
clbarnes 8f212e1
isort pandas_web
clbarnes bda5265
fix _get_dummies_1d import path
clbarnes 6e6ddda
categorical.test_api: to->get dummies
clbarnes 9fcebf0
isort pandas_web
clbarnes b9908c4
fix typos in categorical doctests
clbarnes faeec41
isort test_datetime
clbarnes e11f28e
use get_dummies instead of _get_dummies_1d
clbarnes 742c940
Reference get_dummies/ from_dummies in reshaping docs
clbarnes 722137d
use prefix in from_dummies
clbarnes 4945ba8
document prefix handling in categorical.rst
clbarnes 1f98233
Lower-memory impl for Categorical.from_dummies
clbarnes ff01048
remove comment about use of _get_dummies_1d
clbarnes 604b839
type-annotate get/from_dummies
clbarnes c71e807
split overlong line
clbarnes 6f9272a
blacken
clbarnes 8fd4b72
use f-strings
clbarnes 534bc33
add some typing
clbarnes 0facec6
remove unnecessary .values
clbarnes File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
use prefix in from_dummies
- Loading branch information
commit 722137d374639fbd5fc14c1b12b39b92a74f1640
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i agree with the others
either remove this or make it identical to get_dummies
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the discussion around this was more about the necessity/ implementation of
to_dummies
- there currently isn't an equivalent offrom_dummies
in pandas, which is what originally precipitated the issue. But note taken re.to_dummies
if that was the intention.