|
2 | 2 |
|
3 | 3 | # AUTOGENERATED! DO NOT EDIT! File to edit: ../nbs/API/dabest_object.ipynb. |
4 | 4 |
|
5 | | -# %% auto 0 |
| 5 | +# %% auto #0 |
6 | 6 | __all__ = ['Dabest'] |
7 | 7 |
|
8 | | -# %% ../nbs/API/dabest_object.ipynb 5 |
| 8 | +# %% ../nbs/API/dabest_object.ipynb #d3c6f47a |
9 | 9 | # Import standard data science libraries |
10 | 10 | import warnings |
11 | 11 | from numpy import array, repeat, random, issubdtype, number |
|
14 | 14 | from scipy.stats import norm |
15 | 15 | from scipy.stats import randint |
16 | 16 |
|
17 | | -# %% ../nbs/API/dabest_object.ipynb 7 |
| 17 | +# %% ../nbs/API/dabest_object.ipynb #350b12c1 |
18 | 18 | class Dabest(object): |
19 | 19 |
|
20 | 20 | """ |
@@ -559,14 +559,12 @@ def _check_errors(self, x, y, idx, experiment, experiment_label, x1_level): |
559 | 559 | self.__x1_level = x1_level |
560 | 560 |
|
561 | 561 | if self.__is_paired and self.__output_data.isnull().values.any(): |
562 | | - warn1 = f"NaN values detected under paired setting and removed," |
| 562 | + warn1 = f"NaN values detected under paired setting," |
563 | 563 | warn2 = f" please check your data." |
564 | 564 | warnings.warn(warn1 + warn2) |
565 | 565 | if x is not None and y is not None: |
566 | 566 | rmname = self.__output_data[self.__output_data[y].isnull()][self.__id_col].tolist() |
567 | 567 | self.__output_data = self.__output_data[~self.__output_data[self.__id_col].isin(rmname)] |
568 | | - elif x is None and y is None: |
569 | | - self.__output_data.dropna(inplace=True) |
570 | 568 |
|
571 | 569 | # Check if there is a typo on paired |
572 | 570 | if self.__is_paired and self.__is_paired not in ("baseline", "sequential"): |
|
0 commit comments