Skip to content

BUG #12336: Fix init categorical series with scalar value #12368

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
wants to merge 4 commits into from
Closed

BUG #12336: Fix init categorical series with scalar value #12368

wants to merge 4 commits into from

Conversation

rinoc
Copy link
Contributor

@rinoc rinoc commented Feb 17, 2016

closes #12336

Changed the tests to match the other ones in test_fromValue.

* pydata/master: (290 commits)
  BUG: resample with nunique
  CLN: change getargspec -> signature
  COMPAT: invalid casting to nan
  TST: skip blosc tests on msgpacks if not installed
  API: consistency in aggregate groupby results
  docs: add hyperlinks to str.get_dummies
  TST: confirming tests for #12348
  DEPR: GH10623 remove items from msgpack.encode for blocks
  ENH: gbq docs update
  COMPAT: dateutil=2.2 compat
  NaT.isoformat() returns 'NaT'.
  BUG: addtl fix for compat summary of groupby/resample with dicts
  DOC: add addtl docs for FloatIndexing changes in 0.18.0
  TST: skip some unreliable io/data.py tests
  BUG: Prevent abuse of kwargs in stat functions
  DOC/DEPR: remove remaining occurences of mpl_style from docs (GH12190)
  DOC: move extractall ref point
  DOC: whatsnew link v0.18.0 for float_indexers
  DOC: some rewording of highlights
  DOC: missing colon
  ...
* pydata/master:
  BUG: Bug in DataFrame.set_index() with tz-aware Series
@jreback
Copy link
Contributor

jreback commented Feb 17, 2016

normally we don't need to open a new PR, just push to the same one in the future. ok for now

@jreback jreback added Bug Categorical Categorical Data Type labels Feb 17, 2016
@jreback jreback added this to the 0.18.0 milestone Feb 17, 2016
@@ -635,6 +635,10 @@ def test_fromValue(self):
self.assertEqual(dates.dtype, 'M8[ns]')
self.assertEqual(len(dates), len(self.ts))

categorical = Series(0, index=self.ts.index, dtype="category")
Copy link
Contributor

Choose a reason for hiding this comment

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

add the issue number as a comment (and a 1-line explanation)

@rinoc
Copy link
Contributor Author

rinoc commented Feb 18, 2016

@jreback Sorry about opening a new PR; got confused about rebasing.
Tests are green now.

@jreback jreback closed this in 672fb14 Feb 18, 2016
@jreback
Copy link
Contributor

jreback commented Feb 18, 2016

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Categorical Categorical Data Type
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Initializing category with single value raises AttributeError
2 participants