# PROBLEM: I want following statement to pass, my intent is to have hardcoded version of the dataframe as above
# which I can convert to datframe by reading in with pd.read_csv():
#
# assert_frame_equal(dfa, pd.read_csv(io.StringIO(dfa.to_csv())))
#
# the data inside dataframes is identical, the problem is labels
# the roots of the problem are here: https://github.com/epogrebnyak/rosstat-kep-data/blob/master/kep/query/save.py#L37-L41
# a lot of pivoting is done and labels are nested.
#def string_to_df(string):
# tempfile = io.StringIO(string)
# return pd.read_csv(tempfile)
#DFA = string_to_df(dfa_csv)
#DFQ = string_to_df(dfq_csv)
#DFM = string_to_df(dfm_csv)
#assert_frame_equal(dfa, DFA)
#assert_frame_equal(dfq, DFA)
#assert_frame_equal(dfm, DFM)
Formerly in https://github.com/epogrebnyak/rosstat-kep-data/blob/master/kep/test/pytest/new/test_spec_cfg_and_data.py