Error in when using newer version of pandas

Description

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 Traceback (most recent call last): File "update_tables.py", line 143, in <module> main() File "update_tables.py", line 139, in main master_df, dry_run) File "update_tables.py", line 92, in calculate_leaderboard leaderboard_df, etag=leaderboard_table.etag)) File "/home/xguo/.local/lib/python3.7/site-packages/synapseclient/table.py", line 1287, in Table return CsvFileTable.from_data_frame(schema, values, **kwargs) File "/home/xguo/.local/lib/python3.7/site-packages/synapseclient/table.py", line 1637, in from_data_frame cols = as_table_columns(df) File "/home/xguo/.local/lib/python3.7/site-packages/synapseclient/table.py", line 439, in as_table_columns maxStrLen = df[col].str.len().max() File "/home/xguo/.local/lib/python3.7/site-packages/pandas/core/generic.py", line 5175, in __getattr__ return object.__getattribute__(self, name) File "/home/xguo/.local/lib/python3.7/site-packages/pandas/core/accessor.py", line 175, in __get__ accessor_obj = self._accessor(obj) File "/home/xguo/.local/lib/python3.7/site-packages/pandas/core/strings.py", line 1917, in __init__ self._inferred_dtype = self._validate(data) File "/home/xguo/.local/lib/python3.7/site-packages/pandas/core/strings.py", line 1967, in _validate raise AttributeError("Can only use .str accessor with string " "values!") AttributeError: Can only use .str accessor with string values!

Please update to support the latest version of pandas.

Note: the specified version in setup.py is not enforced because it is listed in extra_require.

Environment

python = 3.7
pandas = 0.25.1

Status

Assignee

Ziming Dong

Reporter

Xindi Guo

Labels

None

Validator

Xindi Guo

Release Version History

None

Affects versions

py-1.9.3

Priority

Major
Configure