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

amora.questions.Question.answer deveria ser representado por um amora.questions.Answer ao invés de um pd.DataFrame #88

Open
diogommartins opened this issue May 10, 2022 · 1 comment

Comments

@diogommartins
Copy link
Contributor

Acho que poderiamos (não agora) separar Answer de DataFrame. Answer teria um método to_df/df

Originally posted by @thulio in #78 (comment)

@diogommartins diogommartins changed the title Question.answer deveria ser representado por um amora.questions.Answer ao invés de um pd.DataFrame amora.question.Question.answer deveria ser representado por um amora.questions.Answer ao invés de um pd.DataFrame May 10, 2022
@diogommartins diogommartins changed the title amora.question.Question.answer deveria ser representado por um amora.questions.Answer ao invés de um pd.DataFrame amora.questions.Question.answer deveria ser representado por um amora.questions.Answer ao invés de um pd.DataFrame May 10, 2022
@diogommartins
Copy link
Contributor Author

E.g:

# questions.py
class Answer:
    def to_df() -> pd.DataFrame:
        ...
        
        
class Question:
    def answer() -> Answer:
        ...

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