| Conditions | 5 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 1 |
| CRAP Score | 23.225 |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | #! /usr/bin/env python |
||
| 17 | 1 | def transform(self, obj): |
|
| 18 | if isinstance(obj, core.Mol): |
||
| 19 | return self._transform_series(pd.Series(obj)).iloc[0] |
||
| 20 | elif isinstance(obj, pd.Series): |
||
| 21 | return self._transform_series(obj) |
||
| 22 | elif isinstance(obj, pd.DataFrame): |
||
| 23 | return self._transform_series(obj.structure) |
||
| 24 | elif isinstance(obj, (tuple, list)): |
||
| 25 | return self._transform_series(obj) |
||
| 26 | else: |
||
| 27 | raise NotImplementedError |
||
| 28 | |||
| 48 |
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.