Skip to content
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

plot.ipynb does not work for parsing new results with pytorch 2.30 #30

Open
lamikr opened this issue Jun 7, 2024 · 0 comments
Open

Comments

@lamikr
Copy link

lamikr commented Jun 7, 2024

Generated results for AMD RX 6800.
(#28)

When I have the csv files in results folder and open plot with command
jupyter-notebook plot.ipynb
and execute the code I get following exceptions:

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
Cell In[4], line 3
      1 for csv in csv_list:
      2     df=pd.read_csv(csv)
----> 3     df.columns = pd.MultiIndex.from_tuples(columes)
      4     df.groupby(level=0,axis=1).mean().mean()
      5 #     print(csv)

File /opt/rocm_sdk_611/lib/python3.9/site-packages/pandas/core/generic.py:6313, in NDFrame.__setattr__(self, name, value)
   6311 try:
   6312     object.__getattribute__(self, name)
-> 6313     return object.__setattr__(self, name, value)
   6314 except AttributeError:
   6315     pass

File properties.pyx:69, in pandas._libs.properties.AxisProperty.__set__()

File /opt/rocm_sdk_611/lib/python3.9/site-packages/pandas/core/generic.py:814, in NDFrame._set_axis(self, axis, labels)
    809 """
    810 This is called from the cython code when we set the `index` attribute
    811 directly, e.g. `series.index = [1, 2, 3]`.
    812 """
    813 labels = ensure_index(labels)
--> 814 self._mgr.set_axis(axis, labels)
    815 self._clear_item_cache()

File /opt/rocm_sdk_611/lib/python3.9/site-packages/pandas/core/internals/managers.py:238, in BaseBlockManager.set_axis(self, axis, new_labels)
    236 def set_axis(self, axis: AxisInt, new_labels: Index) -> None:
    237     # Caller is responsible for ensuring we have an Index object.
--> 238     self._validate_set_axis(axis, new_labels)
    239     self.axes[axis] = new_labels

File /opt/rocm_sdk_611/lib/python3.9/site-packages/pandas/core/internals/base.py:98, in DataManager._validate_set_axis(self, axis, new_labels)
     95     pass
     97 elif new_len != old_len:
---> 98     raise ValueError(
     99         f"Length mismatch: Expected axis has {old_len} elements, new "
    100         f"values have {new_len} elements"
    101     )

ValueError: Length mismatch: Expected axis has 34 elements, new values have 71 elements
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant