44import decimal
55import itertools
66import logging
7- import warnings
87from collections .abc import Generator
98from collections .abc import Iterator
109from io import BytesIO
@@ -826,7 +825,6 @@ def to_csv(
826825 @overload
827826 def to_df (
828827 self ,
829- pretty_px : bool | None = ...,
830828 price_type : Literal ["fixed" , "float" , "decimal" ] = ...,
831829 pretty_ts : bool = ...,
832830 map_symbols : bool = ...,
@@ -838,7 +836,6 @@ def to_df(
838836 @overload
839837 def to_df (
840838 self ,
841- pretty_px : bool | None = ...,
842839 price_type : Literal ["fixed" , "float" , "decimal" ] = ...,
843840 pretty_ts : bool = ...,
844841 map_symbols : bool = ...,
@@ -849,7 +846,6 @@ def to_df(
849846
850847 def to_df (
851848 self ,
852- pretty_px : bool | None = None ,
853849 price_type : Literal ["fixed" , "float" , "decimal" ] = "float" ,
854850 pretty_ts : bool = True ,
855851 map_symbols : bool = True ,
@@ -861,11 +857,6 @@ def to_df(
861857
862858 Parameters
863859 ----------
864- pretty_px : bool, default True
865- This parameter is deprecated and will be removed in a future release.
866- If all price columns should be converted from `int` to `float` at
867- the correct scale (using the fixed-precision scalar 1e-9). Null
868- prices are replaced with NaN.
869860 price_type : str, default "float"
870861 The price type to use for price fields.
871862 If "fixed", prices will have a type of `int` in fixed decimal format; each unit representing 1e-9 or 0.000000001.
@@ -899,20 +890,6 @@ def to_df(
899890 If the schema for the array cannot be determined.
900891
901892 """
902- if pretty_px is True :
903- warnings .warn (
904- 'The argument `pretty_px` is deprecated and will be removed in a future release; `price_type="float"` can be used instead.' ,
905- DeprecationWarning ,
906- stacklevel = 2 ,
907- )
908- elif pretty_px is False :
909- price_type = "fixed"
910- warnings .warn (
911- 'The argument `pretty_px` is deprecated and will be removed in a future release; `price_type="fixed"` can be used instead.' ,
912- DeprecationWarning ,
913- stacklevel = 2 ,
914- )
915-
916893 schema = validate_maybe_enum (schema , Schema , "schema" )
917894 if schema is None :
918895 if self .schema is None :
0 commit comments