tslearn-team / tslearn-team/tslearn

Usage of tslearn.utils.to_time_series_dataset gives error

Open
#335 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
Python
Stars
3.2k
Forks
384
Avg merge
3d 12h
Merged PRs (30d)
11

Description

Describe the bug
Unable to use to_time_series_dataset method. Following is the error thrown when the dataframe has any date column:
TypeError: float() argument must be a string or a number, not 'Timestamp'

Expected behavior
exceute properly

Environment (please complete the following information):

  • OS: Ubuntu
  • tslearn version latest

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure at tslearn.utils.to_time_series_dataset with a dataframe containing a date column, as described in the issue. Trace the conversion that raises the Timestamp TypeError and verify that the reported dataframe input completes successfully without that error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.