Intermediate Python merge requestshttps://git.embl.de/grp-bio-it-workshops/intermediate-python/-/merge_requests2020-07-01T18:44:53Zhttps://git.embl.de/grp-bio-it-workshops/intermediate-python/-/merge_requests/24pandas merging exercise2020-07-01T18:44:53ZToby Hodgespandas merging exerciseLast of my exercises for the pandas section.
Let me know if the pun in the title is too horrible for publication ;)
@ralves @ext.bauer @meechanLast of my exercises for the pandas section.
Let me know if the pun in the title is too horrible for publication ;)
@ralves @ext.bauer @meechanhttps://git.embl.de/grp-bio-it-workshops/intermediate-python/-/merge_requests/23add groupby exercise2020-07-03T07:27:34ZToby Hodgesadd groupby exerciseThis one looks at split-apply-combine but I'd still like one more on that topic, to finish off the chapter (which will already be very long!).
@ralves @ext.bauerThis one looks at split-apply-combine but I'd still like one more on that topic, to finish off the chapter (which will already be very long!).
@ralves @ext.bauerhttps://git.embl.de/grp-bio-it-workshops/intermediate-python/-/merge_requests/22pd.to_datetime exercise2020-07-01T18:49:08ZToby Hodgespd.to_datetime exercisea nice easy one, but hopefully it will prompt the learner to read the docs about datetime format and consider the implications of ambiguous date formats...
@ralves @ext.bauera nice easy one, but hopefully it will prompt the learner to read the docs about datetime format and consider the implications of ambiguous date formats...
@ralves @ext.bauerhttps://git.embl.de/grp-bio-it-workshops/intermediate-python/-/merge_requests/21pd.concat exercise2020-07-01T13:38:06ZToby Hodgespd.concat exercisesupersedes !16
assumes two indexed dataframes - `africa-lockdowns` and `asia_lockdowns` - have already been loaded.
@ralves @ext.bauersupersedes !16
assumes two indexed dataframes - `africa-lockdowns` and `asia_lockdowns` - have already been loaded.
@ralves @ext.bauerhttps://git.embl.de/grp-bio-it-workshops/intermediate-python/-/merge_requests/20Numpy data types exercise2020-07-01T18:55:12ZKimberly Isobel MeechanNumpy data types exercise@stamper@stamperhttps://git.embl.de/grp-bio-it-workshops/intermediate-python/-/merge_requests/19Masking numpy arrays exercise2020-06-26T18:12:18ZKimberly Isobel MeechanMasking numpy arrays exercise@stamper@stamperhttps://git.embl.de/grp-bio-it-workshops/intermediate-python/-/merge_requests/18Subsetting numpy arrays example2020-07-01T21:03:26ZKimberly Isobel MeechanSubsetting numpy arrays example@stamper@stamperhttps://git.embl.de/grp-bio-it-workshops/intermediate-python/-/merge_requests/17practice with dataframe basics2020-06-30T08:10:51ZToby Hodgespractice with dataframe basicsfor almost immediately after the exercise in !16
@ralves @ext.bauerfor almost immediately after the exercise in !16
@ralves @ext.bauerhttps://git.embl.de/grp-bio-it-workshops/intermediate-python/-/merge_requests/15add intro numpy example2020-06-25T18:07:39ZKimberly Isobel Meechanadd intro numpy exampleBasic intro exercise for numpy. The example images are in the repo under data/
@stamper @ralves @ext.bauer - happy for review from anyone!Basic intro exercise for numpy. The example images are in the repo under data/
@stamper @ralves @ext.bauer - happy for review from anyone!https://git.embl.de/grp-bio-it-workshops/intermediate-python/-/merge_requests/14exercise on writing dataframe to file/looping through a groupby object2020-06-30T08:07:27ZToby Hodgesexercise on writing dataframe to file/looping through a groupby object@ralves @meechan @ext.bauer@ralves @meechan @ext.bauerhttps://git.embl.de/grp-bio-it-workshops/intermediate-python/-/merge_requests/13add example images for numpy section2020-06-25T11:15:09ZKimberly Isobel Meechanadd example images for numpy sectionAdded an example image (electron microscopy) and nucleus segmentation for the numpy section. (all images from here: https://www.biorxiv.org/content/10.1101/2020.02.26.961037v1)
@stamperAdded an example image (electron microscopy) and nucleus segmentation for the numpy section. (all images from here: https://www.biorxiv.org/content/10.1101/2020.02.26.961037v1)
@stamperhttps://git.embl.de/grp-bio-it-workshops/intermediate-python/-/merge_requests/12add another filtering exercise2020-06-25T15:04:02ZToby Hodgesadd another filtering exercisesee !11 for context about dataset
@ralves @meechan @ext.bauersee !11 for context about dataset
@ralves @meechan @ext.bauerhttps://git.embl.de/grp-bio-it-workshops/intermediate-python/-/merge_requests/11add pandas df filtering exercise2020-06-30T07:50:14ZToby Hodgesadd pandas df filtering exercisefor context: the dataframe mentioned in the exercise is built from [this CSV](https://git.embl.de/grp-bio-it-workshops/intermediate-python/-/raw/master/data/CovidCaseData_20200624.csv), i.e.
```python
covid_cases = pd.read_csv('https://...for context: the dataframe mentioned in the exercise is built from [this CSV](https://git.embl.de/grp-bio-it-workshops/intermediate-python/-/raw/master/data/CovidCaseData_20200624.csv), i.e.
```python
covid_cases = pd.read_csv('https://git.embl.de/grp-bio-it-workshops/intermediate-python/-/raw/master/data/CovidCaseData_20200624.csv')
```
one possible solution would be:
```python
covid_cases[covid_cases['year'] == 2019][covid_cases['cases'] > 0]
```
Happy for review from anyone @ralves @meechan @ext.bauerhttps://git.embl.de/grp-bio-it-workshops/intermediate-python/-/merge_requests/10one more style exercise2020-06-24T19:42:06ZToby Hodgesone more style exerciseRenato AlvesRenato Alveshttps://git.embl.de/grp-bio-it-workshops/intermediate-python/-/merge_requests/9update template2020-06-29T08:30:49ZToby Hodgesupdate templatefixes #3
waiting for decision on SVG logo, favicon, etcfixes #3
waiting for decision on SVG logo, favicon, etcToby HodgesToby Hodgeshttps://git.embl.de/grp-bio-it-workshops/intermediate-python/-/merge_requests/8add linter exercise2020-06-29T12:57:52ZToby Hodgesadd linter exerciseRenato AlvesRenato Alveshttps://git.embl.de/grp-bio-it-workshops/intermediate-python/-/merge_requests/7another argparse exercise2020-07-03T12:14:08ZToby Hodgesanother argparse exercisethis one tests understanding of
- `nargs=?`
- `choices`
- `default`
- `store_const`
- `description`this one tests understanding of
- `nargs=?`
- `choices`
- `default`
- `store_const`
- `description`Toby HodgesToby Hodgeshttps://git.embl.de/grp-bio-it-workshops/intermediate-python/-/merge_requests/6add exercise to implement an ArgumentParser from scratch2020-06-29T11:08:58ZToby Hodgesadd exercise to implement an ArgumentParser from scratch~~requires a couple changes to !5~~ done~~requires a couple changes to !5~~ doneRenato AlvesRenato Alveshttps://git.embl.de/grp-bio-it-workshops/intermediate-python/-/merge_requests/5Add exercise to highlight limitations of sys.argv2020-06-24T15:26:57ZToby HodgesAdd exercise to highlight limitations of sys.argvRenato AlvesRenato Alveshttps://git.embl.de/grp-bio-it-workshops/intermediate-python/-/merge_requests/4add exercise investigating sys.argv[0]2020-06-24T15:23:24ZToby Hodgesadd exercise investigating sys.argv[0]will follow up with a coding exercise for `sys.argv` toowill follow up with a coding exercise for `sys.argv` tooRenato AlvesRenato Alves