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

century = birth_years // 100 + 1 #235

Open
hroncok opened this issue Oct 18, 2017 · 1 comment
Open

century = birth_years // 100 + 1 #235

hroncok opened this issue Oct 18, 2017 · 1 comment
Labels

Comments

@hroncok
Copy link
Member

@hroncok hroncok commented Oct 18, 2017

Tohle nefunguje:

>>> birth_years = 2000
>>> century = birth_years // 100 + 1
21

Rok 2000 patří ještě do 20. století.

Můžeme argumentovat, že pro naše data to funguje, ale vhledem k tomu, že všechna naše data jsou v intervalu <1901; 1999> tak by fungovalo i (něco jako) return 20.

Vzhledem k výuce Pandas je tahle výtka irelevantní, jen mě to trklo.

@encukou
Copy link
Member

@encukou encukou commented Oct 18, 2017

Možná by bylo lepší na tohle místo dát '(' + actors['name'] + ')'

encukou added a commit to encukou/naucse.python.cz that referenced this issue Oct 7, 2020
- Add Notebook intro to the session
- Remove references to Numpy
- Comment out %matplotlib inline -- not needed nowadays
- Replace "century" example by parenthesizing last names
  fixes: pyvec#235
- Load sales data from CSV
  fixes: pyvec#248
encukou added a commit to cvut/naucse.python.cz that referenced this issue Oct 7, 2020
- Add Notebook intro to the session
- Remove references to Numpy
- Comment out %matplotlib inline -- not needed nowadays
- Replace "century" example by parenthesizing last names
  fixes: pyvec#235
- Load sales data from CSV
  fixes: pyvec#248

#21
@encukou encukou reopened this Oct 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

2 participants