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
def read_from_stream(input_df: DataFrame) -> DataFrame:
### YOUR CODE HERE
raw_stream_data = (
spark.readStream.format("rate")
.option("rowsPerSecond", 10)
.load()
)
###
# This is just data setup, not part of the exercise
return raw_stream_data.\
join(mock_data_df, raw_stream_data.value == mock_data_df.index, 'left').\
drop("timestamp").\
drop("index")
df = read_from_stream(mock_data_df)
should use input_df, instead of mock_data_df.
If input parameter is used, then the tests fail.
The text was updated successfully, but these errors were encountered:
This function in cmd10
should use input_df, instead of
mock_data_df
.If input parameter is used, then the tests fail.
The text was updated successfully, but these errors were encountered: