Skip to content

Commit

Permalink
Remove setting pandas.DataFrame attributes in get_df
Browse files Browse the repository at this point in the history
  • Loading branch information
michalk8 committed May 23, 2023
1 parent 6dc6101 commit 11d8f44
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions scvelo/core/_anndata.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,17 +292,6 @@ def get_df(
)
df = df.sort_values(by=sort_by, ascending=False)

if hasattr(data, "var_names"):
if df.index[0] in data.var_names:
df.var_names = df.index
elif df.columns[0] in data.var_names:
df.var_names = df.columns
if hasattr(data, "obs_names"):
if df.index[0] in data.obs_names:
df.obs_names = df.index
elif df.columns[0] in data.obs_names:
df.obs_names = df.columns

return df


Expand Down

0 comments on commit 11d8f44

Please sign in to comment.