Advertisement
Guest User

Pandas Test

a guest
Oct 2nd, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 49.08 KB | None | 0 0
  1. running: pytest --skip-slow --skip-network C:\Program Files\Python36\lib\site-packages\pandas
  2. ============================= test session starts =============================
  3. platform win32 -- Python 3.6.2, pytest-3.2.2, py-1.4.34, pluggy-0.4.0
  4. rootdir: C:\, inifile:
  5. collected 10021 items / 13 skipped
  6.  
  7. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\test_algos.py ...............................................................s...........................
  8. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\test_base.py .........................
  9. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\test_categorical.py ..............................s.......................................................................................................................
  10. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\test_common.py ..............
  11. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\test_compat.py .....
  12. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\test_config.py ....................
  13. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\test_downstream.py sssssssss
  14. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\test_errors.py ..........
  15. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\test_expressions.py ssssssssssssssssssss
  16. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\test_internals.py ..........s.....................................................
  17. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\test_join.py ..........
  18. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\test_lib.py .............
  19. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\test_multilevel.py .........................................................................................s.......................................................
  20. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\test_nanops.py .........s....ss...ss..................................
  21. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\test_panel.py .............s..............................................................................................ss.............................
  22. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\test_panel4d.py .........s................................................
  23. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\test_panelnd.py ....
  24. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\test_resample.py .....s................................................................s.........................................................................................s.................
  25. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\test_sorting.py s...s.
  26. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\test_strings.py .............................................................................................
  27. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\test_take.py ............
  28. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\test_window.py ........s..s...s..........x...................s....ssssssssss...........sss............................................sss...........................................................................
  29. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\api\test_api.py ..........s.....
  30. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\api\test_types.py .......
  31. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\computation\test_compat.py ss.s.
  32. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\computation\test_eval.py ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss....................ss..ss..ss..ssssss..ss..ss..ssssss..ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss..ss..ss..ss.........ss..ss..ss..ss..ss..ss..ss..ssssssssssssssss................ss..ss...
  33. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\dtypes\test_cast.py ......................
  34. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\dtypes\test_common.py ................................................................................................ss..............................s.
  35. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\dtypes\test_concat.py ....
  36. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\dtypes\test_dtypes.py .........................................................
  37. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\dtypes\test_generic.py .
  38. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\dtypes\test_inference.py ........................................................................................................sssssss..
  39. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\dtypes\test_io.py ........
  40. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\dtypes\test_missing.py ...............
  41. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\frame\test_alter_axes.py ..................................
  42. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\frame\test_analytics.py ssssss.s..............................ss......................................x........................................................................................................................................................................................................................................................................................
  43. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\frame\test_api.py ...............................
  44. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\frame\test_apply.py ................................
  45. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\frame\test_asof.py ....
  46. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\frame\test_axis_select_reindex.py ..................................
  47. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\frame\test_block_internals.py ..........................
  48. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\frame\test_combine_concat.py ............................
  49. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\frame\test_constructors.py ................................................................................................
  50. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\frame\test_convert_to.py .............
  51. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\frame\test_dtypes.py ..............................
  52. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\frame\test_indexing.py .................................................................................................................................
  53. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\frame\test_join.py .............
  54. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\frame\test_missing.py ............................sss.s....
  55. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\frame\test_mutate_columns.py ............
  56. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\frame\test_nonunique_indexes.py ........
  57. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\frame\test_operators.py .........s........................
  58. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\frame\test_period.py .....
  59. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\frame\test_quantile.py ....s.......
  60. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\frame\test_query_eval.py ........ss.sss.sss.s.ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss.s.s.s.s.s.s.s.sss.sss.s.s.s.s.sss.ssssssssss...
  61. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\frame\test_rank.py s.s.s..
  62. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\frame\test_replace.py .............................................
  63. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\frame\test_repr_info.py ..s..s.................
  64. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\frame\test_reshape.py .........................
  65. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\frame\test_sorting.py ...................
  66. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\frame\test_subclass.py ..........
  67. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\frame\test_timeseries.py ............................
  68. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\frame\test_to_csv.py .......ss...........s...................
  69. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\frame\test_validate.py .
  70. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\groupby\test_aggregate.py ......................................
  71. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\groupby\test_bin_groupby.py .....
  72. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\groupby\test_categorical.py ................
  73. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\groupby\test_counting.py .................
  74. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\groupby\test_filters.py ........................
  75. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\groupby\test_groupby.py .....................................................................................................................................................................................
  76. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\groupby\test_nth.py ......
  77. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\groupby\test_timegrouper.py ..................
  78. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\groupby\test_transform.py .......................
  79. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\groupby\test_value_counts.py ssss
  80. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\groupby\test_whitelist.py ..............................................................................................
  81. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\indexes\test_base.py ..........................................................................................................................................................................................FF.................
  82. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\indexes\test_category.py ...........................................................................
  83. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\indexes\test_frozen.py ............
  84. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\indexes\test_interval.py ..............................................................xxx.................................
  85. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\indexes\test_multi.py ............................................................................................s...........................................................................x....................
  86. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\indexes\test_numeric.py ........................................................................................................................................................................................................................................
  87. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\indexes\test_range.py .....................................................................................................
  88. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\indexes\datetimes\test_astype.py ...............
  89. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\indexes\datetimes\test_construction.py ......................
  90. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\indexes\datetimes\test_date_range.py ............................................
  91. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\indexes\datetimes\test_datetime.py .............................................
  92. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\indexes\datetimes\test_datetimelike.py ........................................................
  93. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\indexes\datetimes\test_formats.py .
  94. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\indexes\datetimes\test_indexing.py .....
  95. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\indexes\datetimes\test_misc.py ............
  96. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\indexes\datetimes\test_missing.py .
  97. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\indexes\datetimes\test_ops.py .........................................................................
  98. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\indexes\datetimes\test_partial_slicing.py ............
  99. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\indexes\datetimes\test_setops.py ....................s...
  100. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\indexes\datetimes\test_tools.py .....s..s....s..........................................................................
  101. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\indexes\period\test_asfreq.py ......
  102. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\indexes\period\test_construction.py .............................
  103. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\indexes\period\test_formats.py .
  104. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\indexes\period\test_indexing.py .............
  105. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\indexes\period\test_ops.py .......................................
  106. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\indexes\period\test_partial_slicing.py .......
  107. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\indexes\period\test_period.py .....................................................................................................
  108. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\indexes\period\test_setops.py .........
  109. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\indexes\period\test_tools.py ....................................
  110. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\indexes\timedeltas\test_astype.py .........................................................
  111. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\indexes\timedeltas\test_construction.py ....
  112. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\indexes\timedeltas\test_indexing.py ...
  113. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\indexes\timedeltas\test_ops.py ...............................................
  114. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\indexes\timedeltas\test_partial_slicing.py ....
  115. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\indexes\timedeltas\test_setops.py ......
  116. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\indexes\timedeltas\test_timedelta.py .................................................................................
  117. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\indexes\timedeltas\test_timedelta_range.py .
  118. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\indexes\timedeltas\test_tools.py .....
  119. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\io\test_clipboard.py ......
  120. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\io\test_common.py ...........
  121. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\io\test_excel.py sss
  122. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\io\test_html.py ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss.ssss
  123. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\io\test_packers.py .xx....................................s.s.ss.ss.........
  124. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\io\test_pickle.py ............................................
  125. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\io\test_s3.py .
  126. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\io\test_sql.py ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss................................ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss..............s...............ssssssssss
  127. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\io\test_stata.py ..........................................................xx
  128. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\io\formats\test_css.py ..............................................................................
  129. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\io\formats\test_eng_formatting.py ......
  130. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\io\formats\test_format.py .....................................s..................................................................................................
  131. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\io\formats\test_printing.py .......sssss
  132. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\io\formats\test_to_csv.py .........
  133. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\io\formats\test_to_excel.py .......................................................................................
  134. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\io\formats\test_to_html.py ..............sss...............
  135. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\io\formats\test_to_latex.py ...............
  136. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\io\json\test_json_table_schema.py ...................................
  137. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\io\json\test_normalize.py .............
  138. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\io\json\test_pandas.py ..............................ss..............s.
  139. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\io\json\test_ujson.py ....................................................................s..................................................................
  140. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\io\msgpack\test_buffer.py ..
  141. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\io\msgpack\test_case.py .............
  142. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\io\msgpack\test_except.py ...
  143. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\io\msgpack\test_extension.py ...
  144. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\io\msgpack\test_format.py ..........
  145. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\io\msgpack\test_limits.py ........
  146. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\io\msgpack\test_newspec.py .....
  147. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\io\msgpack\test_obj.py ........
  148. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\io\msgpack\test_pack.py ................
  149. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\io\msgpack\test_read_size.py ......
  150. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\io\msgpack\test_seq.py .
  151. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\io\msgpack\test_sequnpack.py ......
  152. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\io\msgpack\test_subtype.py .
  153. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\io\msgpack\test_unpack.py ...
  154. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\io\msgpack\test_unpack_raw.py ..
  155. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\io\parser\test_network.py ssssssssssssssssssssssssss
  156. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\io\parser\test_parsers.py ..............................................................ss...................................s.............................................................................................s....................................................s............s.......................................................ss...................................s.............................................................................................s....................................................s.............................................ss...................................s.............................................................................................s...............................................................s......
  157. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\io\parser\test_read_fwf.py ......................
  158. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\io\parser\test_textreader.py .........................
  159. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\io\parser\test_unsupported.py .......
  160. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\io\sas\test_sas.py .
  161. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\io\sas\test_sas7bdat.py ...xx......
  162. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\io\sas\test_xport.py ......
  163. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\scalar\test_interval.py ..........
  164. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\scalar\test_nat.py .................
  165. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\scalar\test_period.py ...........................................................................
  166. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\scalar\test_period_asfreq.py ..............
  167. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\scalar\test_timedelta.py ........................
  168. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\scalar\test_timestamp.py .............................................................s...............
  169. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\series\test_alter_axes.py .............
  170. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\series\test_analytics.py ..............ss...........s..........ss......................................................................
  171. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\series\test_api.py ..........................
  172. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\series\test_apply.py ...............................
  173. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\series\test_asof.py ......
  174. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\series\test_combine_concat.py ............
  175. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\series\test_constructors.py ................................................
  176. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\series\test_datetime_values.py ........
  177. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\series\test_dtypes.py ......................................................
  178. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\series\test_indexing.py ............................................................................F..............................................s.....
  179. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\series\test_internals.py .......
  180. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\series\test_io.py ...............
  181. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\series\test_missing.py .................................sssss..s..ss.......ssss.ssssss...
  182. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\series\test_operators.py .......................................................
  183. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\series\test_period.py .............
  184. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\series\test_quantile.py ....s.....
  185. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\series\test_rank.py s..s.s....
  186. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\series\test_replace.py .............
  187. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\series\test_repr.py ............
  188. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\series\test_sorting.py ........
  189. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\series\test_subclass.py .....
  190. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\series\test_timeseries.py .........................................
  191. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\series\test_validate.py .
  192. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\sparse\test_arithmetics.py ...........................
  193. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\sparse\test_array.py ..........................................
  194. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\sparse\test_combine_concat.py ............
  195. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\sparse\test_format.py ......
  196. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\sparse\test_frame.py .........................................................................ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss.....
  197. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\sparse\test_groupby.py ..
  198. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\sparse\test_indexing.py ................................................................................
  199. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\sparse\test_libsparse.py ..s.......................
  200. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\sparse\test_list.py ........
  201. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\sparse\test_pivot.py ..
  202. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\sparse\test_series.py ........................................s....................ssssssssssssssssssssssss...
  203. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\tools\test_numeric.py ....................
  204. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\tseries\test_frequencies.py ....................................................
  205. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\tseries\test_holiday.py ..........................
  206. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\tseries\test_offsets.py ....................................................................................................................................................................................s...................................................................s..s........s..s..........................................F....
  207. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\tseries\test_timezones.py ......................................................................................F...............................s.........F..................s...
  208. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\util\test_hashing.py .......................
  209. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\util\test_testing.py .............ss..................s
  210. ..\..\..\..\..\Program Files\Python36\lib\site-packages\pandas\tests\util\test_util.py ........................s.sss
  211.  
  212. ================================== FAILURES ===================================
  213. _______________________ TestMixedIntIndex.test_argsort ________________________
  214.  
  215. self = <pandas.tests.indexes.test_base.TestMixedIntIndex object at 0x00000289D3CA8E48>
  216.  
  217. def test_argsort(self):
  218. idx = self.create_index()
  219. if PY36:
  220. with tm.assert_raises_regex(TypeError, "'>' not supported"):
  221. > result = idx.argsort()
  222.  
  223. C:\Program Files\Python36\lib\site-packages\pandas\tests\indexes\test_base.py:1822:
  224. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  225.  
  226. self = Index([0, 'a', 1, 'b', 2, 'c'], dtype='object'), args = (), kwargs = {}
  227. result = array([0, 'a', 1, 'b', 2, 'c'], dtype=object)
  228.  
  229. def argsort(self, *args, **kwargs):
  230. """
  231. Returns the indices that would sort the index and its
  232. underlying data.
  233.  
  234. Returns
  235. -------
  236. argsorted : numpy array
  237.  
  238. See also
  239. --------
  240. numpy.ndarray.argsort
  241. """
  242. result = self.asi8
  243. if result is None:
  244. result = np.array(self)
  245. > return result.argsort(*args, **kwargs)
  246. E TypeError: '<' not supported between instances of 'str' and 'int'
  247.  
  248. C:\Program Files\Python36\lib\site-packages\pandas\core\indexes\base.py:2091: TypeError
  249.  
  250. During handling of the above exception, another exception occurred:
  251.  
  252. self = <pandas.tests.indexes.test_base.TestMixedIntIndex object at 0x00000289D3CA8E48>
  253.  
  254. def test_argsort(self):
  255. idx = self.create_index()
  256. if PY36:
  257. with tm.assert_raises_regex(TypeError, "'>' not supported"):
  258. > result = idx.argsort()
  259.  
  260. C:\Program Files\Python36\lib\site-packages\pandas\tests\indexes\test_base.py:1822:
  261. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  262. C:\Program Files\Python36\lib\site-packages\pandas\util\testing.py:2545: in __exit__
  263. return self.exception_matches(exc_type, exc_value, trace_back)
  264. C:\Program Files\Python36\lib\site-packages\pandas\util\testing.py:2580: in exception_matches
  265. raise_with_traceback(e, trace_back)
  266. C:\Program Files\Python36\lib\site-packages\pandas\compat\__init__.py:344: in raise_with_traceback
  267. raise exc.with_traceback(traceback)
  268. C:\Program Files\Python36\lib\site-packages\pandas\tests\indexes\test_base.py:1822: in test_argsort
  269. result = idx.argsort()
  270. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  271.  
  272. self = Index([0, 'a', 1, 'b', 2, 'c'], dtype='object'), args = (), kwargs = {}
  273. result = array([0, 'a', 1, 'b', 2, 'c'], dtype=object)
  274.  
  275. def argsort(self, *args, **kwargs):
  276. """
  277. Returns the indices that would sort the index and its
  278. underlying data.
  279.  
  280. Returns
  281. -------
  282. argsorted : numpy array
  283.  
  284. See also
  285. --------
  286. numpy.ndarray.argsort
  287. """
  288. result = self.asi8
  289. if result is None:
  290. result = np.array(self)
  291. > return result.argsort(*args, **kwargs)
  292. E AssertionError: "'>' not supported" does not match "'<' not supported between instances of 'str' and 'int'"
  293.  
  294. C:\Program Files\Python36\lib\site-packages\pandas\core\indexes\base.py:2091: AssertionError
  295. ____________________ TestMixedIntIndex.test_numpy_argsort _____________________
  296.  
  297. obj = Index([0, 'a', 1, 'b', 2, 'c'], dtype='object'), method = 'argsort'
  298. args = (), kwds = {'axis': -1, 'kind': 'quicksort', 'order': None}
  299.  
  300. def _wrapfunc(obj, method, *args, **kwds):
  301. try:
  302. > return getattr(obj, method)(*args, **kwds)
  303.  
  304. C:\Program Files\Python36\lib\site-packages\numpy\core\fromnumeric.py:57:
  305. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  306.  
  307. self = Index([0, 'a', 1, 'b', 2, 'c'], dtype='object'), args = ()
  308. kwargs = {'axis': -1, 'kind': 'quicksort', 'order': None}
  309. result = array([0, 'a', 1, 'b', 2, 'c'], dtype=object)
  310.  
  311. def argsort(self, *args, **kwargs):
  312. """
  313. Returns the indices that would sort the index and its
  314. underlying data.
  315.  
  316. Returns
  317. -------
  318. argsorted : numpy array
  319.  
  320. See also
  321. --------
  322. numpy.ndarray.argsort
  323. """
  324. result = self.asi8
  325. if result is None:
  326. result = np.array(self)
  327. > return result.argsort(*args, **kwargs)
  328. E TypeError: '<' not supported between instances of 'str' and 'int'
  329.  
  330. C:\Program Files\Python36\lib\site-packages\pandas\core\indexes\base.py:2091: TypeError
  331.  
  332. During handling of the above exception, another exception occurred:
  333.  
  334. self = <pandas.tests.indexes.test_base.TestMixedIntIndex object at 0x00000289D3CACC18>
  335.  
  336. def test_numpy_argsort(self):
  337. idx = self.create_index()
  338. if PY36:
  339. with tm.assert_raises_regex(TypeError, "'>' not supported"):
  340. > result = np.argsort(idx)
  341.  
  342. C:\Program Files\Python36\lib\site-packages\pandas\tests\indexes\test_base.py:1835:
  343. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  344.  
  345. a = Index([0, 'a', 1, 'b', 2, 'c'], dtype='object'), axis = -1
  346. kind = 'quicksort', order = None
  347.  
  348. def argsort(a, axis=-1, kind='quicksort', order=None):
  349. """
  350. Returns the indices that would sort an array.
  351.  
  352. Perform an indirect sort along the given axis using the algorithm specified
  353. by the `kind` keyword. It returns an array of indices of the same shape as
  354. `a` that index data along the given axis in sorted order.
  355.  
  356. Parameters
  357. ----------
  358. a : array_like
  359. Array to sort.
  360. axis : int or None, optional
  361. Axis along which to sort. The default is -1 (the last axis). If None,
  362. the flattened array is used.
  363. kind : {'quicksort', 'mergesort', 'heapsort'}, optional
  364. Sorting algorithm.
  365. order : str or list of str, optional
  366. When `a` is an array with fields defined, this argument specifies
  367. which fields to compare first, second, etc. A single field can
  368. be specified as a string, and not all fields need be specified,
  369. but unspecified fields will still be used, in the order in which
  370. they come up in the dtype, to break ties.
  371.  
  372. Returns
  373. -------
  374. index_array : ndarray, int
  375. Array of indices that sort `a` along the specified axis.
  376. If `a` is one-dimensional, ``a[index_array]`` yields a sorted `a`.
  377.  
  378. See Also
  379. --------
  380. sort : Describes sorting algorithms used.
  381. lexsort : Indirect stable sort with multiple keys.
  382. ndarray.sort : Inplace sort.
  383. argpartition : Indirect partial sort.
  384.  
  385. Notes
  386. -----
  387. See `sort` for notes on the different sorting algorithms.
  388.  
  389. As of NumPy 1.4.0 `argsort` works with real/complex arrays containing
  390. nan values. The enhanced sort order is documented in `sort`.
  391.  
  392. Examples
  393. --------
  394. One dimensional array:
  395.  
  396. >>> x = np.array([3, 1, 2])
  397. >>> np.argsort(x)
  398. array([1, 2, 0])
  399.  
  400. Two-dimensional array:
  401.  
  402. >>> x = np.array([[0, 3], [2, 2]])
  403. >>> x
  404. array([[0, 3],
  405. [2, 2]])
  406.  
  407. >>> np.argsort(x, axis=0)
  408. array([[0, 1],
  409. [1, 0]])
  410.  
  411. >>> np.argsort(x, axis=1)
  412. array([[0, 1],
  413. [0, 1]])
  414.  
  415. Sorting with keys:
  416.  
  417. >>> x = np.array([(1, 0), (0, 1)], dtype=[('x', '<i4'), ('y', '<i4')])
  418. >>> x
  419. array([(1, 0), (0, 1)],
  420. dtype=[('x', '<i4'), ('y', '<i4')])
  421.  
  422. >>> np.argsort(x, order=('x','y'))
  423. array([1, 0])
  424.  
  425. >>> np.argsort(x, order=('y','x'))
  426. array([0, 1])
  427.  
  428. """
  429. > return _wrapfunc(a, 'argsort', axis=axis, kind=kind, order=order)
  430.  
  431. C:\Program Files\Python36\lib\site-packages\numpy\core\fromnumeric.py:907:
  432. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  433.  
  434. obj = Index([0, 'a', 1, 'b', 2, 'c'], dtype='object'), method = 'argsort'
  435. args = (), kwds = {'axis': -1, 'kind': 'quicksort', 'order': None}
  436.  
  437. def _wrapfunc(obj, method, *args, **kwds):
  438. try:
  439. return getattr(obj, method)(*args, **kwds)
  440.  
  441. # An AttributeError occurs if the object does not have
  442. # such a method in its class.
  443.  
  444. # A TypeError occurs if the object does have such a method
  445. # in its class, but its signature is not identical to that
  446. # of NumPy's. This situation has occurred in the case of
  447. # a downstream library like 'pandas'.
  448. except (AttributeError, TypeError):
  449. > return _wrapit(obj, method, *args, **kwds)
  450.  
  451. C:\Program Files\Python36\lib\site-packages\numpy\core\fromnumeric.py:67:
  452. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  453.  
  454. obj = Index([0, 'a', 1, 'b', 2, 'c'], dtype='object'), method = 'argsort'
  455. args = (), kwds = {'axis': -1, 'kind': 'quicksort', 'order': None}
  456. wrap = <bound method Index.__array_wrap__ of Index([0, 'a', 1, 'b', 2, 'c'], dtype='object')>
  457.  
  458. def _wrapit(obj, method, *args, **kwds):
  459. try:
  460. wrap = obj.__array_wrap__
  461. except AttributeError:
  462. wrap = None
  463. > result = getattr(asarray(obj), method)(*args, **kwds)
  464. E TypeError: '<' not supported between instances of 'str' and 'int'
  465.  
  466. C:\Program Files\Python36\lib\site-packages\numpy\core\fromnumeric.py:47: TypeError
  467.  
  468. During handling of the above exception, another exception occurred:
  469.  
  470. self = <pandas.tests.indexes.test_base.TestMixedIntIndex object at 0x00000289D3CACC18>
  471.  
  472. def test_numpy_argsort(self):
  473. idx = self.create_index()
  474. if PY36:
  475. with tm.assert_raises_regex(TypeError, "'>' not supported"):
  476. > result = np.argsort(idx)
  477.  
  478. C:\Program Files\Python36\lib\site-packages\pandas\tests\indexes\test_base.py:1835:
  479. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  480. C:\Program Files\Python36\lib\site-packages\pandas\util\testing.py:2545: in __exit__
  481. return self.exception_matches(exc_type, exc_value, trace_back)
  482. C:\Program Files\Python36\lib\site-packages\pandas\util\testing.py:2580: in exception_matches
  483. raise_with_traceback(e, trace_back)
  484. C:\Program Files\Python36\lib\site-packages\pandas\compat\__init__.py:344: in raise_with_traceback
  485. raise exc.with_traceback(traceback)
  486. C:\Program Files\Python36\lib\site-packages\pandas\tests\indexes\test_base.py:1835: in test_numpy_argsort
  487. result = np.argsort(idx)
  488. C:\Program Files\Python36\lib\site-packages\numpy\core\fromnumeric.py:907: in argsort
  489. return _wrapfunc(a, 'argsort', axis=axis, kind=kind, order=order)
  490. C:\Program Files\Python36\lib\site-packages\numpy\core\fromnumeric.py:67: in _wrapfunc
  491. return _wrapit(obj, method, *args, **kwds)
  492. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  493.  
  494. obj = Index([0, 'a', 1, 'b', 2, 'c'], dtype='object'), method = 'argsort'
  495. args = (), kwds = {'axis': -1, 'kind': 'quicksort', 'order': None}
  496. wrap = <bound method Index.__array_wrap__ of Index([0, 'a', 1, 'b', 2, 'c'], dtype='object')>
  497.  
  498. def _wrapit(obj, method, *args, **kwds):
  499. try:
  500. wrap = obj.__array_wrap__
  501. except AttributeError:
  502. wrap = None
  503. > result = getattr(asarray(obj), method)(*args, **kwds)
  504. E AssertionError: "'>' not supported" does not match "'<' not supported between instances of 'str' and 'int'"
  505.  
  506. C:\Program Files\Python36\lib\site-packages\numpy\core\fromnumeric.py:47: AssertionError
  507. ___________________ TestSeriesIndexing.test_basic_indexing ____________________
  508.  
  509. self = <pandas.tests.series.test_indexing.TestSeriesIndexing object at 0x00000289D8B0C9E8>
  510.  
  511. def test_basic_indexing(self):
  512. s = Series(np.random.randn(5), index=['a', 'b', 'a', 'a', 'b'])
  513.  
  514. pytest.raises(IndexError, s.__getitem__, 5)
  515. pytest.raises(IndexError, s.__setitem__, 5, 0)
  516.  
  517. pytest.raises(KeyError, s.__getitem__, 'c')
  518.  
  519. s = s.sort_index()
  520.  
  521. pytest.raises(IndexError, s.__getitem__, 5)
  522. > pytest.raises(IndexError, s.__setitem__, 5, 0)
  523. E Failed: DID NOT RAISE <class 'IndexError'>
  524.  
  525. C:\Program Files\Python36\lib\site-packages\pandas\tests\series\test_indexing.py:1629: Failed
  526. ________________________ TestDST.test_fallback_plural _________________________
  527.  
  528. self = <pandas.tests.tseries.test_offsets.TestDST object at 0x00000289DCB38550>
  529.  
  530. def test_fallback_plural(self):
  531. # test moving from daylight savings to standard time
  532. import dateutil
  533. for tz, utc_offsets in self.timezone_utc_offsets.items():
  534. hrs_pre = utc_offsets['utc_offset_daylight']
  535. hrs_post = utc_offsets['utc_offset_standard']
  536.  
  537. if dateutil.__version__ != LooseVersion('2.6.0'):
  538. # buggy ambiguous behavior in 2.6.0
  539. # GH 14621
  540. # https://github.com/dateutil/dateutil/issues/321
  541. self._test_all_offsets(
  542. n=3, tstart=self._make_timestamp(self.ts_pre_fallback,
  543. hrs_pre, tz),
  544. > expected_utc_offset=hrs_post)
  545.  
  546. C:\Program Files\Python36\lib\site-packages\pandas\tests\tseries\test_offsets.py:4860:
  547. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  548. C:\Program Files\Python36\lib\site-packages\pandas\tests\tseries\test_offsets.py:4803: in _test_all_offsets
  549. self._test_offset(offset_name=name, offset_n=n, **kwds)
  550. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  551.  
  552. self = <pandas.tests.tseries.test_offsets.TestDST object at 0x00000289DCB38550>
  553. offset_name = 'minutes', offset_n = 3
  554. tstart = Timestamp('2013-11-03 01:59:59.999999-0700', tz='dateutil/US/Pacific')
  555. expected_utc_offset = -8
  556.  
  557. def _test_offset(self, offset_name, offset_n, tstart, expected_utc_offset):
  558. offset = DateOffset(**{offset_name: offset_n})
  559.  
  560. t = tstart + offset
  561. if expected_utc_offset is not None:
  562. > assert get_utc_offset_hours(t) == expected_utc_offset
  563. E AssertionError: assert -7.0 == -8
  564. E + where -7.0 = get_utc_offset_hours(Timestamp('2013-11-03 01:02:59.999999-0700', tz='dateutil/US/Pacific'))
  565.  
  566. C:\Program Files\Python36\lib\site-packages\pandas\tests\tseries\test_offsets.py:4810: AssertionError
  567. ______________ TestTimeZoneSupportDateutil.test_ambiguous_flags _______________
  568.  
  569. self = <pandas.tests.tseries.test_timezones.TestTimeZoneSupportDateutil object at 0x00000289DCB37B70>
  570.  
  571. def test_ambiguous_flags(self):
  572. # November 6, 2011, fall back, repeat 2 AM hour
  573. tz = self.tz('US/Eastern')
  574.  
  575. # Pass in flags to determine right dst transition
  576. dr = date_range(datetime(2011, 11, 6, 0), periods=5,
  577. freq=offsets.Hour(), tz=tz)
  578. times = ['11/06/2011 00:00', '11/06/2011 01:00', '11/06/2011 01:00',
  579. '11/06/2011 02:00', '11/06/2011 03:00']
  580.  
  581. # Test tz_localize
  582. di = DatetimeIndex(times)
  583. is_dst = [1, 1, 0, 0, 0]
  584. localized = di.tz_localize(tz, ambiguous=is_dst)
  585. tm.assert_index_equal(dr, localized)
  586. tm.assert_index_equal(dr, DatetimeIndex(times, tz=tz,
  587. ambiguous=is_dst))
  588.  
  589. localized = di.tz_localize(tz, ambiguous=np.array(is_dst))
  590. tm.assert_index_equal(dr, localized)
  591.  
  592. localized = di.tz_localize(tz,
  593. ambiguous=np.array(is_dst).astype('bool'))
  594. tm.assert_index_equal(dr, localized)
  595.  
  596. # Test constructor
  597. localized = DatetimeIndex(times, tz=tz, ambiguous=is_dst)
  598. tm.assert_index_equal(dr, localized)
  599.  
  600. # Test duplicate times where infer_dst fails
  601. times += times
  602. di = DatetimeIndex(times)
  603.  
  604. # When the sizes are incompatible, make sure error is raised
  605. pytest.raises(Exception, di.tz_localize, tz, ambiguous=is_dst)
  606.  
  607. # When sizes are compatible and there are repeats ('infer' won't work)
  608. is_dst = np.hstack((is_dst, is_dst))
  609. localized = di.tz_localize(tz, ambiguous=is_dst)
  610. dr = dr.append(dr)
  611. tm.assert_index_equal(dr, localized)
  612.  
  613. # When there is no dst transition, nothing special happens
  614. dr = date_range(datetime(2011, 6, 1, 0), periods=10,
  615. freq=offsets.Hour())
  616. is_dst = np.array([1] * 10)
  617. localized = dr.tz_localize(tz)
  618. localized_is_dst = dr.tz_localize(tz, ambiguous=is_dst)
  619. tm.assert_index_equal(localized, localized_is_dst)
  620.  
  621. # construction with an ambiguous end-point
  622. # GH 11626
  623. tz = self.tzstr("Europe/London")
  624.  
  625. def f():
  626. date_range("2013-10-26 23:00", "2013-10-27 01:00",
  627. tz="Europe/London", freq="H")
  628. pytest.raises(pytz.AmbiguousTimeError, f)
  629.  
  630. times = date_range("2013-10-26 23:00", "2013-10-27 01:00", freq="H",
  631. tz=tz, ambiguous='infer')
  632. assert times[0] == Timestamp('2013-10-26 23:00', tz=tz, freq="H")
  633.  
  634. if dateutil.__version__ != LooseVersion('2.6.0'):
  635. # see gh-14621
  636. > assert times[-1] == Timestamp('2013-10-27 01:00:00+0000',
  637. tz=tz, freq="H")
  638. E AssertionError: assert Timestamp('2013-10-27 01:00:00+0100', tz='dateutil/GB-Eire', freq='H') == Timestamp('2013-10-27 02:00:00+0100', tz='dateutil/GB-Eire', freq='H')
  639. E + where Timestamp('2013-10-27 02:00:00+0100', tz='dateutil/GB-Eire', freq='H') = Timestamp('2013-10-27 01:00:00+0000', tz='dateutil/Europe/London', freq='H')
  640.  
  641. C:\Program Files\Python36\lib\site-packages\pandas\tests\tseries\test_timezones.py:567: AssertionError
  642. _____________________ TestTimeZones.test_ambiguous_compat _____________________
  643.  
  644. self = <pandas.tests.tseries.test_timezones.TestTimeZones object at 0x00000289DCE12A20>
  645.  
  646. def test_ambiguous_compat(self):
  647. # validate that pytz and dateutil are compat for dst
  648. # when the transition happens
  649. tm._skip_if_no_dateutil()
  650. tm._skip_if_no_pytz()
  651.  
  652. pytz_zone = 'Europe/London'
  653. dateutil_zone = 'dateutil/Europe/London'
  654. result_pytz = (Timestamp('2013-10-27 01:00:00')
  655. .tz_localize(pytz_zone, ambiguous=0))
  656. result_dateutil = (Timestamp('2013-10-27 01:00:00')
  657. .tz_localize(dateutil_zone, ambiguous=0))
  658. assert result_pytz.value == result_dateutil.value
  659. assert result_pytz.value == 1382835600000000000
  660.  
  661. # dateutil 2.6 buggy w.r.t. ambiguous=0
  662. if dateutil.__version__ != LooseVersion('2.6.0'):
  663. # see gh-14621
  664. # see https://github.com/dateutil/dateutil/issues/321
  665. > assert (result_pytz.to_pydatetime().tzname() ==
  666. result_dateutil.to_pydatetime().tzname())
  667. E AssertionError: assert 'GMT' == 'BST'
  668. E - GMT
  669. E + BST
  670.  
  671. C:\Program Files\Python36\lib\site-packages\pandas\tests\tseries\test_timezones.py:1263: AssertionError
  672. ============================== warnings summary ===============================
  673. Program Files/Python36/lib/site-packages/pandas/tests/dtypes/test_missing.py::test_array_equivalent_compat
  674. C:\Program Files\Python36\lib\site-packages\numpy\core\numeric.py:2604: FutureWarning: elementwise == comparison failed and returning scalar instead; this will raise an error or perform elementwise comparison in the future.
  675. return bool(asarray(a1 == a2).all())
  676.  
  677. -- Docs: http://doc.pytest.org/en/latest/warnings.html
  678. 6 failed, 8575 passed, 1441 skipped, 12 xfailed, 1 warnings in 768.27 seconds
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement