-
- Notifications
You must be signed in to change notification settings - Fork 19.4k
Closed
Labels
BugDtype ConversionsUnexpected or buggy dtype conversionsUnexpected or buggy dtype conversionsReshapingConcat, Merge/Join, Stack/Unstack, ExplodeConcat, Merge/Join, Stack/Unstack, Explode
Milestone
Description
Because the 13.1 shift uses .values, it will upcast mixed dtypes to object.
import pandas as pd import numpy as np import pandas.util.testing as tm data = [('item '+ch, tm.makeMixedDataFrame()) for ch in list('abcde')] data = dict(data) mixed_panel = pd.Panel.from_dict(data, orient='minor') shifted = mixed_panel.shift(1) tm.assert_series_equal(mixed_panel.dtypes, shifted.dtypes) #failsHave PR for this.
Metadata
Metadata
Assignees
Labels
BugDtype ConversionsUnexpected or buggy dtype conversionsUnexpected or buggy dtype conversionsReshapingConcat, Merge/Join, Stack/Unstack, ExplodeConcat, Merge/Join, Stack/Unstack, Explode