File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -1712,7 +1712,7 @@ def to_pandas(
17121712 if max_download_size is not None :
17131713 msg = bfe .format_message (
17141714 "DEPRECATED: The `max_download_size` parameters for `DataFrame.to_pandas()` "
1715- "are deprecated and will be removed soon. Please use `DataFrame.to_pandas_batch ()`."
1715+ "are deprecated and will be removed soon. Please use `DataFrame.to_pandas_batches ()`."
17161716 )
17171717 warnings .warn (msg , category = UserWarning )
17181718 if sampling_method is not None or random_state is not None :
Original file line number Diff line number Diff line change @@ -464,7 +464,7 @@ def to_pandas(
464464 if max_download_size is not None :
465465 msg = bfe .format_message (
466466 "DEPRECATED: The `max_download_size` parameters for `Series.to_pandas()` "
467- "are deprecated and will be removed soon. Please use `Series.to_pandas_batch ()`."
467+ "are deprecated and will be removed soon. Please use `Series.to_pandas_batches ()`."
468468 )
469469 warnings .warn (msg , category = UserWarning )
470470 if sampling_method is not None or random_state is not None :
Original file line number Diff line number Diff line change @@ -290,17 +290,17 @@ def test_to_pandas_downsampling_option_override(session):
290290 [
291291 pytest .param (
292292 {"sampling_method" : "head" },
293- r"DEPRECATED[\S\s]*sampling_method[\S\s]*DataFrame" ,
293+ r"DEPRECATED[\S\s]*sampling_method[\S\s]*DataFrame.sample " ,
294294 id = "sampling_method" ,
295295 ),
296296 pytest .param (
297297 {"random_state" : 10 },
298- r"DEPRECATED[\S\s]*random_state[\S\s]*DataFrame" ,
298+ r"DEPRECATED[\S\s]*random_state[\S\s]*DataFrame.sample " ,
299299 id = "random_state" ,
300300 ),
301301 pytest .param (
302302 {"max_download_size" : 10 },
303- r"DEPRECATED[\S\s]*max_download_size[\S\s]*DataFrame" ,
303+ r"DEPRECATED[\S\s]*max_download_size[\S\s]*DataFrame.to_pandas_batches " ,
304304 id = "max_download_size" ,
305305 ),
306306 ],
Original file line number Diff line number Diff line change @@ -42,17 +42,17 @@ def test_to_pandas_override_global_option(scalars_df_index):
4242 [
4343 pytest .param (
4444 {"sampling_method" : "head" },
45- r"DEPRECATED[\S\s]*sampling_method[\S\s]*Series" ,
45+ r"DEPRECATED[\S\s]*sampling_method[\S\s]*Series.sample " ,
4646 id = "sampling_method" ,
4747 ),
4848 pytest .param (
4949 {"random_state" : 10 },
50- r"DEPRECATED[\S\s]*random_state[\S\s]*Series" ,
50+ r"DEPRECATED[\S\s]*random_state[\S\s]*Series.sample " ,
5151 id = "random_state" ,
5252 ),
5353 pytest .param (
5454 {"max_download_size" : 10 },
55- r"DEPRECATED[\S\s]*max_download_size[\S\s]*Series" ,
55+ r"DEPRECATED[\S\s]*max_download_size[\S\s]*Series.to_pandas_batches " ,
5656 id = "max_download_size" ,
5757 ),
5858 ],
You can’t perform that action at this time.
0 commit comments