---
title: isStreaming
description: "DataFrame.isStreaming property in PySpark: Returns True if this DataFrame contains one or more sources that continuously return data as it arrives."
canonical_url: https://docs.databricks.com/gcp/en/pyspark/reference/classes/dataframe/isStreaming
---

# isStreaming

Returns `True` if this `DataFrame` contains one or more sources that continuously return data as it arrives. A `DataFrame` that reads data from a streaming source must be executed as a `StreamingQuery` using the `start` method in `DataStreamWriter`. Methods that return a single answer, such as `count` or `collect`, will throw an `AnalysisException` when there is a streaming source present.

## Returns

`bool`

## Examples

```python
df = spark.readStream.format("rate").load()
df.isStreaming
# True
```
