question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Duck columns in astropy Table

See original GitHub issue

This 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:open
  • Created 4 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
taldcroftcommented, Jul 1, 2019

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).

1reaction
pllimcommented, Jul 9, 2019

Duck is cute. 🦆 Mimic reminds me of a scifi horror movie. 😱

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found