8000 CLN: typo fixups by jbrockmendel · Pull Request #25028 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

CLN: typo fixups #25028

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 4 commits into from
Jan 31, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
revert
  • Loading branch information
jbrockmendel committed Jan 30, 2019
commit f44e0cac0874cc6616a857ab264dbc7e876eabbb
12 changes: 11 additions & 1 deletion pandas/core/internals/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -2072,7 +2072,17 @@ def get_values(self, dtype=None):
return object dtype as boxed values, such as Timestamps/Timedelta
"""
if is_object_dtype(dtype):
return self.values.astype(object)
values = self.values

if self.ndim > 1:
values = values.ravel()

values = lib.map_infer(values, self._box_func)

if self.ndim > 1:
values = values.reshape(self.values.shape)

return values
return self.values


Expand Down
0