python-novice-inflammation icon indicating copy to clipboard operation
python-novice-inflammation copied to clipboard

Analyzing data from multiple files - no example using '?'

Open chmille3 opened this issue 7 years ago • 1 comments

I noticed in the Analyzing Data from Multiple Files section, the '*' and '?' were presented for use in pattern strings. However, an example of how the '?' can be used is not given. Basically, it is mentioned but is not used. Two options could be:

  • Remove mention of '?', or

  • Add a few lines with a simple example: What if one wants the files numbered 10 and up or below 10:

           above 10 - glog.glob(‘data/inflamation-1?.csv’)
           below 10 - glog.glob(‘data/inflamation-0?.csv’)
    

I hope this is helpful!

chmille3 avatar Jun 07 '17 17:06 chmille3

Indeed, using ? is also mentioned in the "Key Points", but considering that no example or exercise uses it, I think this is a bit confusing. Glob also supports other wildcards, such as [...], which are not mentioned at all. This seems inconsistent.

? is a very useful wildcard, so I'd vote for adding a small example that demonstrates its usage.

bittremieux avatar Aug 26 '22 22:08 bittremieux