Open stephancb opened 10 months ago
Hi @stephancb, i_row
is not a keyword but a positional argument. I have listed keywords usually under the Optional Keywords
section in the help text.
In your case, you should do the following:
julia> show_current("Montreal", 4)
[ Info: More than one match found, showing report for location in row 4.
[ Info: You can select another location by its row index.
4×4 DataFrame
Row │ CITY TIMEZONE LATITUDE LONGITUDE
│ String? String31 Float64 Float64
─────┼────────────────────────────────────────────────
1 │ Montreal America/Toronto 45.5088 -73.5878
2 │ Montreal Europe/Paris 43.9502 0.20217
3 │ Montreal Europe/Paris 43.1998 2.14122
4 │ Montreal America/Chicago 46.428 -90.246
┌─────────────────┬───────────┬────────────┬─────────────┬───────────┬─────────┬─────────┐
│ Timezone │ Elevation │ Wind speed │ Temperature │ Condition │ 🌅 │ 🌆 │
│ [CST] │ [m] │ [km/h] │ [°C] │ [] │ [hh:mm] │ [hh:mm] │
├─────────────────┼───────────┼────────────┼─────────────┼───────────┼─────────┼─────────┤
│ America/Chicago │ 489.0 │ 15.3 │ -4.6 │ Overcast │ 07:44 │ 16:26 │
└─────────────────┴───────────┴────────────┴─────────────┴───────────┴─────────┴─────────┘
[Weather data by Open-Meteo.com]
I see, thanks. Perhaps in the docstring ...the row index from the printed DataFrame...
could be expanded to ...the row index from the printed DataFrame as the 2nd argument...
?
Yes, that can easily be done. Maybe there are more locations where the description can be improved? Also, PRs are most welcome! :smiley:
and