-
Notifications
You must be signed in to change notification settings - Fork 6
Timedelta string values cannot be converted with the dtype parameter #24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Tests to update: dynamo-pandas/tests/test_main.py Line 122 in 72df84b
dynamo-pandas/tests/test_main.py Line 221 in 72df84b
|
Docs to update:
|
DrGFreeman
added a commit
that referenced
this issue
Feb 17, 2024
Include timedelta64 type in tests with dtype conversion. Mark the tests as skipped for tests with pandas < 1.5 (pandas bug fixed in 1.5 and up).
DrGFreeman
added a commit
that referenced
this issue
Feb 17, 2024
Uncomment the timedelta64 dtype conversion in docs examples and update note to indicate the pandas bug applies to pandas versions < 1.5 only.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Timedelta string values stored in a table cannot be converted with the
dtype
parameter of theget_df
andto_df
functions or using the dataframeastype
method. This is due to a known bug in pandas (ref.: pandas-dev/pandas#38509).As a result, unit tests for the
dtype
parameter of theget_df
andput_df
function do not test this conversion. Once the pandas issue is resolved, this conversion can be added to the tests.As a workaround, the Timedelta columns can be converted using
pd.to_timedelta(df.column_name)
.The text was updated successfully, but these errors were encountered: