Skip to content
  • Main website
  • Rationalwiki / Oliver Smith
  • Archive
  • Donation options
  • In the media
  • Relation to Søren Kierkegaard?
  • About
Clear Language, Clear Mind
  • Main website
  • Rationalwiki / Oliver Smith
  • Archive
  • Donation options
  • In the media
  • Relation to Søren Kierkegaard?
  • About

Python

  1. Home>
  2. Programming>
  3. Python

Do you hate Python’s range() and want to use R’s seq()?

  • Post author:Emil O. W. Kirkegaard
  • Post published:11. April 2017
  • Post category:Python/R

I do. So I implemented R's function in Python. I wrote a bunch of tests for this for most uses I could think of and they all work. Except the…

Continue ReadingDo you hate Python’s range() and want to use R’s seq()?

Python: Removing empty lists from mixed nested lists

  • Post author:Emil O. W. Kirkegaard
  • Post published:5. September 2016
  • Post category:Python

Suppose you have some function that returns possibly nested lists with empty lists inside. Worse, they may have lists with lists with an empty list inside. And suppose you want…

Continue ReadingPython: Removing empty lists from mixed nested lists
Copyright - OceanWP Theme by OceanWP