Fix extra index column when dataset is empty

feature/plugin_sentimental
JulioV 2021-02-15 19:00:04 -05:00
parent 2e46f56111
commit faefca8b9a
5 changed files with 5 additions and 5 deletions

View File

@ -53,7 +53,7 @@ def extractBVPFeaturesFromIntradayData(bvp_intraday_data, features, time_segment
# get stats of bvp # get stats of bvp
bvp_intraday_features = statsFeatures(bvp_intraday_data, features, bvp_intraday_features) bvp_intraday_features = statsFeatures(bvp_intraday_data, features, bvp_intraday_features)
bvp_intraday_features.reset_index(inplace=True) bvp_intraday_features.reset_index(inplace=True)
return bvp_intraday_features return bvp_intraday_features

View File

@ -53,7 +53,7 @@ def extractEDAFeaturesFromIntradayData(eda_intraday_data, features, time_segment
# get stats of eda # get stats of eda
eda_intraday_features = statsFeatures(eda_intraday_data, features, eda_intraday_features) eda_intraday_features = statsFeatures(eda_intraday_data, features, eda_intraday_features)
eda_intraday_features.reset_index(inplace=True) eda_intraday_features.reset_index(inplace=True)
return eda_intraday_features return eda_intraday_features

View File

@ -53,7 +53,7 @@ def extractHRFeaturesFromIntradayData(heartrate_intraday_data, features, time_se
# get stats of heartrate # get stats of heartrate
heartrate_intraday_features = statsFeatures(heartrate_intraday_data, features, heartrate_intraday_features) heartrate_intraday_features = statsFeatures(heartrate_intraday_data, features, heartrate_intraday_features)
heartrate_intraday_features.reset_index(inplace=True) heartrate_intraday_features.reset_index(inplace=True)
return heartrate_intraday_features return heartrate_intraday_features

View File

@ -53,7 +53,7 @@ def extractIBIFeaturesFromIntradayData(ibi_intraday_data, features, time_segment
# get stats of ibi # get stats of ibi
ibi_intraday_features = statsFeatures(ibi_intraday_data, features, ibi_intraday_features) ibi_intraday_features = statsFeatures(ibi_intraday_data, features, ibi_intraday_features)
ibi_intraday_features.reset_index(inplace=True) ibi_intraday_features.reset_index(inplace=True)
return ibi_intraday_features return ibi_intraday_features

View File

@ -53,7 +53,7 @@ def extractTempFeaturesFromIntradayData(temperature_intraday_data, features, tim
# get stats of temperature # get stats of temperature
temperature_intraday_features = statsFeatures(temperature_intraday_data, features, temperature_intraday_features) temperature_intraday_features = statsFeatures(temperature_intraday_data, features, temperature_intraday_features)
temperature_intraday_features.reset_index(inplace=True) temperature_intraday_features.reset_index(inplace=True)
return temperature_intraday_features return temperature_intraday_features