From 04316d6fb3e5186c55a8701043a058fcb08ece22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=AD=E7=BE=BD?= <guoyu@igengmei.com> Date: Wed, 26 May 2021 17:35:26 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BE=8E=E8=B4=AD=E7=B2=BE=E6=8E=92=E6=A8=A1?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spark/featureEng.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spark/featureEng.py b/spark/featureEng.py index 1ba2388..d64a240 100644 --- a/spark/featureEng.py +++ b/spark/featureEng.py @@ -601,8 +601,8 @@ if __name__ == '__main__': file_path = "/service_feature" print("write to hdfs start...") - # splitTimestamp = int(time.mktime(time.strptime(endDay, "%Y%m%d"))) - # splitAndSaveTrainingTestSamplesByTimeStamp(samplesWithUserFeatures, splitTimestamp, file_path) + splitTimestamp = int(time.mktime(time.strptime(endDay, "%Y%m%d"))) + splitAndSaveTrainingTestSamplesByTimeStamp(samplesWithUserFeatures, splitTimestamp, file_path) print("write to hdfs success...") -- 2.18.0