We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab06b2b commit 7299ee5Copy full SHA for 7299ee5
pandas/core/frame.py
@@ -2338,7 +2338,7 @@ def to_rdata(
2338
Raises
2339
------
2340
LibrdataWriterError
2341
- * If DataFrame types or values not translatable to R data types.
+ * If DataFrame types or values do not conform to R data types.
2342
2343
See Also
2344
--------
pandas/tests/io/test_rdata.py
@@ -720,10 +720,10 @@ def test_write_read_dtypes(rtype, comp):
720
721
dts = [
722
Timestamp.min.ceil("S"),
723
- Timestamp(-(10 ** 18)),
+ Timestamp(-(10.0 ** 18.0)).ceil("S"),
724
Timestamp(0),
725
Timestamp.now().floor("S"),
726
- Timestamp(10 ** 18),
+ Timestamp(10.0 ** 18.0).floor("S"),
727
Timestamp.max.floor("S"),
728
]
729
@@ -737,7 +737,7 @@ def test_write_read_dtypes(rtype, comp):
737
),
738
"interval": interval_range(start=10, periods=6, freq=10 * 2),
739
"bool": [False, True, True, True, False, False],
740
- "int": [2 ** 10 - 1, 1, -(2 ** 10) + 1, -1, 0, 10 ** 9],
+ "int": [2 ** 20 - 1, 1, -(2 ** 20) + 1, -1, 0, 10 ** 9],
741
"float": [0, np.pi, float("nan"), np.e, np.euler_gamma, 0],
742
"string": array(
743
["acidification", "change", "loss", "use", "depletion", "aersols"],
0 commit comments