It might seem like a duplicate of to these two questions but can't find a solution that does not involve removing the columns, concatenating, then re-inserting them back into the data frame (which is a long winded way i've only managed to produce).
I would like to remove the "dht_t" column and combine its non-NA or "None" rows it with "int_t". these dht columns contain the same data as int_t, but at different timestamps. I want to combine the rows.
dht_t/h are coming from the same sensors as int_t/h, but are put in additional rows for some of dataset.
head(july11)
time hive_id int_t int_h dht_t dht_h hz db pa
1 2015-07-11 00:00:01 hive1 25.3 50.1 None None 136.72 39.443 100849
2 2015-07-11 00:00:22 hive1 25.3 50.3 None None NaN 39.108 100846
3 2015-07-11 00:00:43 hive1 25.3 50.3 None None NaN 39.451 100835
4 2015-07-11 00:01:04 hive1 25.3 50.3 None None NaN 39.145 100849
5 2015-07-11 00:01:25 hive1 25.3 50.3 None None NaN 39.357 100844
6 2015-07-11 00:01:46 hive1 25.3 50.7 None None NaN 39.284 100843
this is asection of the data that where the dht_t/h values should be moved to int_t/h columns
and have an output without dht_t and dht_h
time hive_id int_t int_h hz db pa
1 2015-07-11 00:00:01 hive1 25.3 50.1 136.72 39.443 100849
2 2015-07-11 00:00:22 hive1 25.3 50.3 NaN 39.108 100846
3 2015-07-11 00:00:43 hive1 25.3 50.3 NaN 39.451 100835
4 2015-07-11 00:01:04 hive1 25.3 50.3 NaN 39.145 100849
5 2015-07-11 00:01:25 hive1 25.3 50.3 NaN 39.357 100844
6 2015-07-11 00:01:46 hive1 25.3 50.7 NaN 39.284 100843