microsoft / python-in-excel

Python in Microsoft Excel
MIT License
490 stars 31 forks source link

Why `headers` instead of `header` in `xl()`? #21

Open fzumstein opened 10 months ago

fzumstein commented 10 months ago

Pandas uses pd.read_excel(header) so I would have expected xl() to use header instead of headers (also, I'd say a table/dataframe only has a single header)?

keyur32 commented 10 months ago

Thanks for the report. A few considerations the team had:

fzumstein commented 10 months ago

Thanks for the explanation! However, in a PY cell, I am in the Python world, so I think it makes more sense to take over Python syntax rather than Excel syntax.

SergeiStPete commented 10 months ago

Thanks for the explanation! However, in a PY cell, I am in the Python world, so I think it makes more sense to take over Python syntax rather than Excel syntax.

Oh, it depends. On the other hand that's Excel user who tests the water with Python.

SergeiStPete commented 10 months ago
  • So for example, instead of a dataframe you will be able to set the default to return a numpy array. If so do I understand correctly numpy will be connected by default for all subscriptions where Python is available?