tm.assert_numpy_array_equal(result, np.array([], dtype=np.int64))
+@pytest.mark.intel
@pytest.mark.parametrize("klass", [np.datetime64, np.timedelta64])
def test_datetime_likes_nan(klass):
dtype = klass.__name__ + "[ns]"
idx2 = pd.date_range(end="2000", periods=periods, freq="S")
assert len(idx2) == periods
+ @pytest.mark.intel
def test_nat(self):
assert DatetimeIndex([np.nan])[0] is pd.NaT
check("table", index)
check("fixed", index)
+ @pytest.mark.intel
@pytest.mark.skipif(
not is_platform_little_endian(), reason="reason platform is not little endian"
)
],
)
@pytest.mark.parametrize("dtype", ["category", object])
+ @pytest.mark.intel
def test_latin_encoding(self, dtype, val):
enc = "latin-1"
nan_rep = ""
# read with KeyError before another write
df.to_hdf(path, "k2")
+ @pytest.mark.intel
def test_append_frame_column_oriented(self):
with ensure_clean_store(self.path) as store:
with pytest.raises(NotImplementedError):
store.select("dfs", start=0, stop=5)
+ @pytest.mark.intel
def test_select_filter_corner(self):
df = DataFrame(np.random.randn(50, 100))
written_and_read_again = self.read_dta(path)
tm.assert_frame_equal(written_and_read_again.set_index("index"), parsed_114)
+ @pytest.mark.intel
@pytest.mark.parametrize(
"file", ["dta15_113", "dta15_114", "dta15_115", "dta15_117"]
)
tm.assert_frame_equal(from_frame, chunk, check_dtype=False)
pos += chunksize
+ @pytest.mark.intel
@pytest.mark.parametrize("version", [114, 117])
def test_write_variable_labels(self, version):
# GH 13631, add support for writing variable labels
with tm.ensure_clean() as path:
original.to_stata(path, variable_labels=variable_labels_long)
+ @pytest.mark.intel
def test_default_date_conversion(self):
# GH 12259
dates = [
expected = Series(expected2, dtype=object)
tm.assert_series_equal(result, expected)
+ @pytest.mark.intel
@pytest.mark.parametrize(
"dropna, expected1, expected2",
[
tm.assert_series_equal(result, expected)
+ @pytest.mark.intel
@pytest.mark.parametrize("arg", ["2013-01-01 00:00:00", pd.NaT, np.nan, None])
def test_constructor_with_naive_string_and_datetimetz_dtype(self, arg):
# GH 17415: With naive string