针对pulse-transit的工具
This commit is contained in:
		
							
								
								
									
										11
									
								
								dist/client/pandas/tests/indexes/timedeltas/test_pickle.py
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								dist/client/pandas/tests/indexes/timedeltas/test_pickle.py
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,11 @@
 | 
			
		||||
from pandas import timedelta_range
 | 
			
		||||
import pandas._testing as tm
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class TestPickle:
 | 
			
		||||
    def test_pickle_after_set_freq(self):
 | 
			
		||||
        tdi = timedelta_range("1 day", periods=4, freq="s")
 | 
			
		||||
        tdi = tdi._with_freq(None)
 | 
			
		||||
 | 
			
		||||
        res = tm.round_trip_pickle(tdi)
 | 
			
		||||
        tm.assert_index_equal(res, tdi)
 | 
			
		||||
		Reference in New Issue
	
	Block a user