-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: invalid dtypes should raise #15520
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
Comments
Hi, I am looking into contributing to open source projects and this looks like a good first-time contibution to start with. I'd like to give it a try. |
great contributing docs are http://pandas.pydata.org/pandas-docs/stable/contributing.html |
Put in a pull request for this issue. This is my first contribution attempt, so please let me know if I'm way off base here. |
Should be addressing this at the source of the problem (raise anytime a function passes a non-valid dtype), or should we raise only when this happens in a Series function call? |
Here is my suggestion for this issue: 607ae9c |
… per pandas-dev#15520 This change ensures that no error is raised when type 'object' is passed.
… per pandas-dev#15520 This change ensures that no error is raised when type 'object' is passed.
closes pandas-dev#15520 Author: Akash Tandon <[email protected]> Author: root <[email protected]> Author: analyticalmonk <[email protected]> Author: Akash Tandon <[email protected]> Closes pandas-dev#16047 from analyticalmonk/patch_for_15520 and squashes the following commits: 3646eb6 [analyticalmonk] TST: check for invalid dtype for Series constructor per GH15520 73d980a [Akash Tandon] Merge branch 'master' into patch_for_15520 b3c2fbb [root] BUG: Added 'O' to pandas_dtype's valid list c3699fb [root] DOC: added whatsnew entry for PR#16047 addressing GH15520 fbed5a6 [Akash Tandon] TST: Added list to invalid dtype ad9f345 [Akash Tandon] CLN: refactored code related to issue GH15520 a358181 [Akash Tandon] BUG: Added numpy.dtype_ to valid pandas_dtype() type list 3eaa432 [Akash Tandon] TST: Added numpy.object_ dtype to valid pandas_dtype list f858726 [Akash Tandon] style fix d4971cd [Akash Tandon] BUG: pandas_dtype() to raise error for invalid dtype per GH15520 ee0030f [Akash Tandon] TST: added more test-cases for pandas_dtype() test 3700259 [Akash Tandon] CLN: Replace _coerce_to_dtype() with pandas_dtype() c10e1d4 [Akash Tandon] TST: maintain list containing dtypes in TestPandasDtype fecba12 [Akash Tandon] BUG: Raise when invalid dtype passed to pandas_dtype 99fb660 [Akash Tandon] TST: wrote test representing bug fix result for pandas-dev#15520
xref dask/dask#1965
when an explict dtype is provided, we should raise if its not a valid
numpy/pandas
dtype.The text was updated successfully, but these errors were encountered: