Addresses #30. This simple change enables the behavior we're looking for: now upon passing an empty list to the columns parameter of to_frame(), a DataFrame with the appropriate index, but no columns, should be returned. This equivalent to calling df[[]].
Coverage increased (+0.002%) to 96.594% when pulling 08be77a759dd598bc6fccfd93a72ddf02b269696 on empty_list into 2842ae01e1d314fcee06a8ba5f90ab31ab3e1393 on master.
Coverage increased (+0.002%) to 96.594% when pulling 08be77a759dd598bc6fccfd93a72ddf02b269696 on empty_list into 2842ae01e1d314fcee06a8ba5f90ab31ab3e1393 on master.
Addresses #30. This simple change enables the behavior we're looking for: now upon passing an empty list to the
columns
parameter ofto_frame()
, a DataFrame with the appropriate index, but no columns, should be returned. This equivalent to callingdf[[]]
.@Eh2406 you might want to take a look.