Duck columns in astropy Table
See original GitHub issueThis is a big picture long term issue to integrate the idea of mixin columns with numpy duck arrays, perhaps resulting in a new offspring “duck columns”. (I never loved the name “mixin column” because of the overloading with mixin class, but never found anything better until today 😈 ).
A tiny code issue that illustrates this is discussed here, i.e. how to decide if an input data object needs to be coerced into a numpy array. Is it good enough already or do we pull out the np.asarray()
hammer?
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Data Tables (astropy.table) — Astropy v5.2
First create a simple table with columns of data named a , b , c , and d . These columns have integer,...
Read more >Column — Astropy v5.2
Interactively browse column with a paging interface. Return a list of formatted string representation of column values. Print a formatted string representation ...
Read more >Table — Astropy v5.2
A class to represent tables of heterogeneous data. Table provides a class for heterogeneous tabular data. A key enhancement provided by the Table...
Read more >Accessing a Table — Astropy v5.2
t.columns # Dict of table columns (access by column name, index, or slice) t.colnames # List of column names t.meta # Dict of...
Read more >Astropy Documentation - Read the Docs
propriate non-Column based class objects within a Table object. ... routines can accept either one as input without much bother (duck typing ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I can bikeshed with the best of them… I actually had to think for a second on the original phrase that “duck typing” refers to. For me and maybe many Python users (esp. non-English), “duck typing” is now just a two-word phrase that has its own well-established meaning. So “mimic” is then using a different word that most non-native-English speakers won’t know which means the same as “duck” (which they might know and has established meaning).
Duck is cute. 🦆 Mimic reminds me of a scifi horror movie. 😱