We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4efb5e9 commit ef6de76Copy full SHA for ef6de76
pandas/rpy/__init__.py
@@ -2,6 +2,8 @@
2
# GH9602
3
# deprecate rpy to instead directly use rpy2
4
5
+# flake8: noqa
6
+
7
import warnings
8
warnings.warn("The pandas.rpy module is deprecated and will be "
9
"removed in a future version. We refer to external packages "
pandas/rpy/base.py
@@ -1,3 +1,5 @@
1
import pandas.rpy.util as util
pandas/rpy/common.py
@@ -2,6 +2,9 @@
Utilities for making working with rpy2 more user- and
developer-friendly.
"""
from __future__ import print_function
10
from distutils.version import LooseVersion
pandas/rpy/tests/test_common.py
Testing that functions from rpy work as expected
import pandas as pd
import numpy as np
import unittest
pandas/rpy/vars.py
pandas/sandbox/qtpandas.py
@@ -4,6 +4,8 @@
@author: Jev Kuznetsov
'''
# GH9615
11
pandas/tests/frame/test_analytics.py
@@ -244,17 +244,17 @@ def test_bool_describe_in_mixed_frame(self):
244
# Integer data are included in .describe() output,
245
# Boolean and string data are not.
246
result = df.describe()
247
- expected = DataFrame({'int_data' : [5, 30, df.int_data.std(),
248
- 10, 20, 30, 40, 50]},
+ expected = DataFrame({'int_data': [5, 30, df.int_data.std(),
+ 10, 20, 30, 40, 50]},
249
index=['count', 'mean', 'std', 'min', '25%',
250
'50%', '75%', 'max'])
251
assert_frame_equal(result, expected)
252
253
# Top value is a boolean value that is False
254
result = df.describe(include=['bool'])
255
256
- expected = DataFrame({'bool_data' : [5, 2, False, 3]},
257
- index=['count', 'unique', 'top', 'freq'])
+ expected = DataFrame({'bool_data': [5, 2, False, 3]},
+ index=['count', 'unique', 'top', 'freq'])
258
259
260
def test_reduce_mixed_frame(self):
0 commit comments