我有以下代码:
# Get the min and max dates
minDate, maxDate = df2.select(f.min("MonthlyTransactionDate"), f.max("MonthlyTransactionDate")).first()
d = pd.date_range(start=minDate, end=maxDate, freq='MS')
tmp = pd.Series(d)
df3 = spark.createDataFrame(tmp)
我已经检查了tmp并且有一个包含日期列表的pandas数据框。 然后我检查了df3,但它看起来像是一个空列表:
++
||
++
||
||
||
||
||
||
||
||
发生了什么?