You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So some, but not all, of the textual formats support reading literally, some support reading bytes as well as strings, and some of the binary formats support reading literal bytes.
Having deprecated literal input to read_json I suggest it makes sense to therefore also do so for:
Following on from #52271 and #53409 (and to close out #5924), here is the state of play for IO routines in terms of what they accept as input
read_clipboard: doesn't take input argumentread_csv: pathlike, BinaryIO, StringIOread_excel: pathlike, BinaryIO, engine-specific objects, literal bytesread_feather: pathlike, BinaryIOread_fwf: pathlike, BinaryIO, StringIOread_gbq: SQL query (str)read_hdf: pathlike, pytables.HDFStoreread_html: pathlike, BinaryIO, StringIO, literal bytes, literal stringread_json: pathlike, BinaryIO, StringIO, literal string (deprecated in DEPR: Deprecate literal json string input to read_json #53409)read_orc: pathlike, BinaryIOread_parquet: pathlike, BinaryIOread_pickle: pathlike, BinaryIOread_sas: pathlike, BinaryIOread_spss: pathlike (pyreadstat doesn't allow reading from a buffer)read_sql_query: SQL query (str)read_sql_table: name of database table (str)read_stata: pathlike, BinaryIOread_table: pathlike, BinaryIO, StringIOread_xml: pathlike, BinaryIO, StringIO, literal bytes, literal stringSo some, but not all, of the textual formats support reading literally, some support reading bytes as well as strings, and some of the binary formats support reading literal bytes.
Having deprecated literal input to
read_jsonI suggest it makes sense to therefore also do so for:read_excelread_htmlread_xml