【问题标题】:Changing Date format with default property [closed]使用默认属性更改日期格式[关闭]
【发布时间】:2022-08-16 21:49:48
【问题描述】:

0

`vectorizer = TfidfVectorizer(analyzer=\'word\',norm=None, use_idf=True,smooth_idf=True) tfIdfMat = vectorizer.fit_transform(df[\'Description\']) feature_names = sorted(vectorizer.get_feature_names())

docList=[\'df.Description\'] #skDocsTfIdfdf = pd.DataFrame(tfIdfMat.todense(),index=sorted(docList), columns=feature_names) #print(skDocsTfIdfdf)

对于 tfIdfMat.nonzero()[1] 中的 col:打印 (feature_names[col], \'-\' , tfIdfMat[0, col])`

    标签: python sqlalchemy


    【解决方案1】:

    我想你可以封装一个函数,以这种格式返回时间,然后替换为 datetime.now
    因为他在为你调用这个函数

    【讨论】:

      猜你喜欢
      • 2016-01-25
      • 1970-01-01
      • 2019-05-29
      • 1970-01-01
      • 2016-02-17
      • 2017-08-28
      • 1970-01-01
      • 1970-01-01
      • 2015-08-29
      相关资源
      最近更新 更多