Skip to content

Commit

Permalink
Add deprecation warning to get_df
Browse files Browse the repository at this point in the history
  • Loading branch information
WeilerP committed Apr 12, 2024
1 parent e1d6aad commit 05e8b3b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scvelo/core/_anndata.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import re
import warnings
from typing import List, Literal, Optional, Union

import numpy as np
Expand Down Expand Up @@ -178,6 +179,13 @@ def get_df(
:class:`pd.DataFrame`
A dataframe.
"""
warnings.warn(
"`get_df` is deprecated since scvelo==0.4.0 and will be removed in a future version "
"of scVelo. Please `AnnData::get_df` or Scanpy's `scanpy.get.obs_df` or `scanpy.get.var_df`.",
DeprecationWarning,
stacklevel=2,
)

if precision is not None:
pd.set_option("display.precision", precision)

Expand Down

0 comments on commit 05e8b3b

Please sign in to comment.