python min date from dictionary

Solutions on MaxInterview for python min date from dictionary by the best coders in the world

showing results for - "python min date from dictionary"
Fernando
08 Jan 2018
1'''	df_dict:
2index       an  bee
32015-07-02  2   5
42016-08-06  3   3
52016-09-13  2   1
62016-10-26  2   0
72016-11-02  7   2	'''
8
9maxval = max(max(v.index) for k,v in df_dict.items())
10minval = min(min(v.index) for k,v in df_dict.items())
11
12print(maxval)
13print(minval)
14
15# Results:
162016-11-02 00:00:00
172015-07-02 00:00:00