-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
ENH: Add support for dataclasses in the DataFrame constructor #27999
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
Merged
Merged
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
5e04aa2
- implemented type-coercion for dataclasses
asosnovsky e0a089f
added unit tests
asosnovsky 7de46ca
added github issue to unit test
asosnovsky 05f3f28
pep8 compliance
asosnovsky 3ec492d
masking functions for lower versions of python
asosnovsky 6c605e0
ran black pandas
asosnovsky 107cdc4
corrected index issue
asosnovsky 1168137
removed py3.7 specific syntax
asosnovsky 863b33a
corrected pytest requirements
asosnovsky 2177165
corrected unit tests
asosnovsky 65640ed
dataclasses require py37 not py36
asosnovsky afc5c3e
added additional unit tests for more specific cases
asosnovsky ca792bc
removed white space
asosnovsky 80cfc51
docs
asosnovsky 2866e5e
Update doc/source/getting_started/dsintro.rst
asosnovsky 0363896
updated docs
asosnovsky e9f8eb6
Merge branch 'issue/21910' of github.com:asosnovsky/pandas into issue…
asosnovsky 9248f16
Update doc/source/getting_started/dsintro.rst
asosnovsky fa28500
Merge branch 'issue/21910' of github.com:asosnovsky/pandas into issue…
asosnovsky c2702f9
updated doc/source/getting_started/dsintro.rst
asosnovsky ea76809
ran linters
asosnovsky dfa8f52
ran isort
asosnovsky 36954cd
Update dsintro.rst
asosnovsky 804f45e
correcting doc
asosnovsky 973817b
Merge branch 'master' into issue/21910
asosnovsky e036290
not overriding the data variable under documentation
asosnovsky 40bada6
split up unit tests
asosnovsky e0ee753
brought Point back
asosnovsky 84ddc9f
added space for formating pass
asosnovsky c0b11c5
merge with current master
asosnovsky 5aa8fbb
finishing merge
asosnovsky 829ba12
Merge branch 'master' into issue/21910
asosnovsky 7ff986a
fixing missing import
asosnovsky 53fe899
Merge branch 'upstream/master' into issue/21910
asosnovsky 5e8b579
corrected isort
asosnovsky ce8fc1f
- renamed is_dataclass_instance to is_dataclass
asosnovsky 1dcfde9
ran isort and linters
asosnovsky 2ab3aea
Update doc/source/getting_started/dsintro.rst
jreback fa80425
Merge remote-tracking branch 'upstream/master' into issue/21910
WillAyd 7d53f14
doctest fix
WillAyd f8fa453
doc fixup
WillAyd 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ | |
is_array_like, | ||
is_bool, | ||
is_complex, | ||
is_dataclass, | ||
is_decimal, | ||
is_dict_like, | ||
is_file_like, | ||
|
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
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.