我想在android studio的recyclerview中显示我的sqlite daatabse数据已保存在saldatabase中,但无法在recylerview中显示数据,我想在recyclerview中显示我存储在数据库中的所有数据,请帮帮我。希望得到你们更好的答复。我想在recyclerview中显示我存储在数据库中的所有数据,请帮帮我。提前谢谢,我希望我会得到你们更好的答复。
i = 0
b = 0
for day_ in np.unique(df.index.date):
a = df[df.index.date == day_]
# print(day_)
# print(b, len(a))
daily_mean_df.iloc[b:b+len(a), 0] = np.mean(a[~np.isnan(a[day[i]])], axis = 1)
i += 1
b += len(a)
print (daily_mean_df)
data1
2018-01-01 00:00:00 6.0
2018-01-01 01:00:00 NaN
2018-01-01 02:00:00 4.0
2018-01-01 03:00:00 4.0
2018-01-01 04:00:00 4.5
...
2018-01-07 20:00:00 NaN
2018-01-07 21:00:00 6.0
2018-01-07 22:00:00 5.0
2018-01-07 23:00:00 3.0
2018-01-08 00:00:00 5.0
[169 rows x 1 columns]