pandas.api.types.is_file_like

pandas 3.1.1 · Arrays, scalars, and data types · function

Check whether an object behaves like an iterable file with read or write support.

Call syntax

pd.api.types.is_file_like(obj)

Run the example

Edit the example and select Run Python to see the result.

Parameters

ParameterRequirementAccepted values and behavior
obj Required
Positional or keyword
object

Provide the pandas object, scalar, or array-like input described in the accepted values.

Returns

bool