Skip to content

Commit 822df81

Browse files
Spencer Carrucciuspringcoil
Spencer Carrucciu
authored andcommitted
ENH: pickle support for Period pandas-dev#10439
update legacy_storage for pickles update pickles/msgpack for 0.16.2 Added tests for ABC Types, Issue pandas-dev#10828 TST: pandas-dev#10822, skip tests on windows for odd error message in to_datetime with unicode COMPAT:Allow multi-indexes to be written to excel. (Even though they cannot be read back in.) Closes pandas-dev#10564 DOC: typo ENH: pickle support for Period pandas-dev#10439 update legacy_storage for pickles update pickles/msgpack for 0.16.2 Added tests for ABC Types, Issue pandas-dev#10828 TST: pandas-dev#10822, skip tests on windows for odd error message in to_datetime with unicode COMPAT:Allow multi-indexes to be written to excel. (Even though they cannot be read back in.) Closes pandas-dev#10564 DOC: typo A few changes in docs
1 parent 57de3ef commit 822df81

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

pandas/io/tests/generate_legacy_storage_files.py

+11
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,20 @@ def create_data():
8383
index=MultiIndex.from_tuples(tuple(zip(*[[1, 1, 2, 2, 2], [3, 4, 3, 4, 5]])),
8484
names=['one', 'two'])),
8585
dup=Series(np.arange(5).astype(np.float64), index=['A', 'B', 'C', 'D', 'A']),
86+
<<<<<<< HEAD
87+
<<<<<<< HEAD
8688
cat=Series(Categorical(['foo', 'bar', 'baz'])))
8789
if LooseVersion(pandas.__version__) >= '0.17.0':
8890
series['period'] = Series([Period('2000Q1')] * 5)
91+
=======
92+
cat=Series(Categorical(['foo', 'bar', 'baz'])),
93+
per=Series([Period('2000Q1')] * 5))
94+
>>>>>>> 0525684... ENH: pickle support for Period #10439
95+
=======
96+
cat=Series(Categorical(['foo', 'bar', 'baz'])))
97+
if LooseVersion(pandas.__version__) >= '0.17.0':
98+
series['period'] = Series([Period('2000Q1')] * 5)
99+
>>>>>>> aa04812... update legacy_storage for pickles
89100

90101
mixed_dup_df = DataFrame(data)
91102
mixed_dup_df.columns = list("ABCDA")

pandas/tseries/tests/test_period.py

+10
Original file line numberDiff line numberDiff line change
@@ -2537,7 +2537,17 @@ def test_searchsorted(self):
25372537

25382538
def test_round_trip(self):
25392539

2540+
<<<<<<< HEAD
2541+
<<<<<<< HEAD
25402542
p = Period('2000Q1')
2543+
=======
2544+
import pickle
2545+
p = Period('2000Q1')
2546+
2547+
>>>>>>> 0525684... ENH: pickle support for Period #10439
2548+
=======
2549+
p = Period('2000Q1')
2550+
>>>>>>> aa04812... update legacy_storage for pickles
25412551
new_p = self.round_trip_pickle(p)
25422552
self.assertEqual(new_p, p)
25432553

0 commit comments

Comments
 (0)