mpcontribs-client 5.10.5rc1__py3-none-any.whl → 5.10.5rc2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -398,8 +398,16 @@ class Table(pd.DataFrame):
398
398
  """
399
399
  df = pd.DataFrame.from_records(
400
400
  dct["data"], columns=dct["columns"], index=dct["index"]
401
- ).apply(pd.to_numeric, errors="ignore")
402
- df.index = pd.to_numeric(df.index, errors="ignore")
401
+ )
402
+ for col in df.columns:
403
+ try:
404
+ df[col] = df[col].apply(pd.to_numeric)
405
+ except Exception as exc:
406
+ continue
407
+ try:
408
+ df.index = pd.to_numeric(df.index)
409
+ except Exception:
410
+ pass
403
411
  labels = dct["attrs"].get("labels", {})
404
412
 
405
413
  if "index" in labels:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mpcontribs-client
3
- Version: 5.10.5rc1
3
+ Version: 5.10.5rc2
4
4
  Summary: Client library for MPContribs API
5
5
  Author-email: Patrick Huck <phuck@lbl.gov>, The Materials Project <feedback@materialsproject.org>
6
6
  License-Expression: BSD-3-Clause-LBNL
@@ -0,0 +1,6 @@
1
+ mpcontribs/client/__init__.py,sha256=ri9TcjYs7kM2kFfFyVqbJEQlijkZ8o9kIX8Rt9sRBD4,98626
2
+ mpcontribs_client-5.10.5rc2.dist-info/licenses/LICENSE,sha256=5tG0Niaqw2hnuyZZYkRXLSnfVrZA47COwduU_6caPLM,1074
3
+ mpcontribs_client-5.10.5rc2.dist-info/METADATA,sha256=ltZ6LJWDkYm0CHLMVzLEd6BTHi1yzaIt3mnL4iyAxSg,1289
4
+ mpcontribs_client-5.10.5rc2.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
5
+ mpcontribs_client-5.10.5rc2.dist-info/top_level.txt,sha256=t8R5L_Dg9oDQMh2gyRFdZGnrzZsr7OjCBTrhTcmimC8,11
6
+ mpcontribs_client-5.10.5rc2.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- mpcontribs/client/__init__.py,sha256=AwKIDzTg30ZMW97QxQZ1OCwJAFrXT3XMdRktgL356Jc,98456
2
- mpcontribs_client-5.10.5rc1.dist-info/licenses/LICENSE,sha256=5tG0Niaqw2hnuyZZYkRXLSnfVrZA47COwduU_6caPLM,1074
3
- mpcontribs_client-5.10.5rc1.dist-info/METADATA,sha256=APCeqCMlQLDEAEBwUYk6CFqHdawo-JDmCgz3VA9R8bg,1289
4
- mpcontribs_client-5.10.5rc1.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
5
- mpcontribs_client-5.10.5rc1.dist-info/top_level.txt,sha256=t8R5L_Dg9oDQMh2gyRFdZGnrzZsr7OjCBTrhTcmimC8,11
6
- mpcontribs_client-5.10.5rc1.dist-info/RECORD,,