We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 878ccce commit 65b2936Copy full SHA for 65b2936
sdks/python/apache_beam/dataframe/doctests.py
@@ -665,7 +665,10 @@ def set_pandas_options():
665
# See
666
# https://github.com/pandas-dev/pandas/blob/a00202d12d399662b8045a8dd3fdac04f18e1e55/doc/source/conf.py#L319
667
np.random.seed(123456)
668
- np.set_printoptions(precision=4, suppress=True)
+ legacy = None
669
+ if np.version.version.startswith('2'):
670
+ legacy = '1.25'
671
+ np.set_printoptions(precision=4, suppress=True, legacy=legacy)
672
pd.options.display.max_rows = 15
673
674
0 commit comments