20

Explode refers to two concepts.

  • In , it refers to splitting a string.

  • In and , it refers to a specific data transformation like well known data transformation concepts: or . For eg, converting

Major Minor
Face [Eye, Teeth]
Chest [Heart, Lungs]

to

Major Minor
Face Eye
Face Teeth
Chest Heart
Chest Lungs
  • Currently, tag refers to explode in wiki and excerpt, but in practice, it is also used for describing the concept in

  • 85+% of questions(1814/2105) is tagged

  • There's another tag to refer to the second concept.

  • There is also another tag , which refers to

References:

3
  • 8
    Even old 'exploded' questions are unrelated, they are about exploded WAR/JAR (Java deployment).
    – Andrew T.
    Oct 25, 2022 at 16:04
  • 18
    If only this was a burnination request -- the puns! "This tag is about to [explode]!" Oct 26, 2022 at 13:48
  • In GIS, it refers to breaking a multipart feature into multiple single part features. Too general a term with only field/context specific uses that don't all mean the same thing. Causes more problems than it solves as a result.
    – jpmc26
    Oct 27, 2022 at 3:18

3 Answers 3

5

There is a decent argument to be made that "explode" meets the criteria for a tag.

Does it describe the contents of the questions to which it is applied? and is it unambiguous?

"Exploding" seems to be a fairly widely-adopted term used across many technologies. These are a handful I found, but I'm sure there are more:

All more or less describe the same process: turning a flat array or string into an n-dimensional data structure.

Is the concept described even on-topic for the site?

Software algorithms are explicitly on-topic. Perhaps not every algorithm is worthy of its own tag, but this concept seems to transcend a particular function or technology. It's a common-enough term and used consistently enough, in my opinion, to be its own tag.

Does the tag add any meaningful information to the post?

While I can't envision many posts that could stand with this tag alone, I can imagine some. A question about efficient algorithms related to transforming a 2-dimensional array to a 3-dimensional array would be on-topic and could appropriately be tagged with just . (Generally, as with , I'd expect to see other tags providing more context, but I don't think it'd be required.)

Does it mean the same thing in all common contexts?

As evidenced by the links above, there seems to be decent consistency across a wide range of technologies, communities and forums. So, yes, at least relative to most other things.

3
  • turning a flat array or string into an n-dimensional data structure. If I'm not mistaken, only [php] wants input as a string. Right?
    – TheMaster
    Oct 26, 2022 at 18:48
  • 3
    Technically speaking, a string is a char array, so it still fits comfortably within the general definition.
    – JDB
    Oct 26, 2022 at 18:52
  • According to the linked documentation the PHP function would be called something like split() in most other languages. It just breaks a string up based on a delimiter; not the data transform that pandas or spark do. Oct 28, 2022 at 17:47
27

I don't think we need a tag for PHP-specific string splitting at all.

Assuming the Pandas function is tag worthy, I'd say we burn and retag to just or as appropriate.

has been suggested by Henry Ecker in the comments as being able to capture the same concept in a number of other platforms.

10
  • 53
    thinking about someone with no context/knowledge seeing "pandas-explode" makes me chuckle
    – starball
    Oct 25, 2022 at 16:44
  • 14
    As a(n alleged) SME in pandas, the pandas-explode function is not tag worthy IMO however the concept that function represents is. "Exploding" in this context defines a very specific form of data transformation. This is similar to other transformations like merge, pivot, crosstab, etc. and a dedicated tag makes it very easy to find Q&A about that specific type of data manipulation. Having said that, however, that same "explode" concept is also found in spark. Maybe something like [dataframe-explode] would be better than separate [pandas-explode] and [spark-explode] tags?
    – Henry Ecker Mod
    Oct 25, 2022 at 17:52
  • 2
    I've seen the same term used with e.g. Excel spreadsheets to mean effectively the same thing. Oct 25, 2022 at 18:15
  • Do you have a reference in Excel for explode into rows? I'm not familiar with it and haven't been able to find anything other than exploding a pie chart which has a rather different meaning. I've also been able to find things like how to implement php style explode style in both google-sheets and Excel but in both cases it's using split which is, again, a different concept. @KarlKnechtel
    – Henry Ecker Mod
    Oct 25, 2022 at 20:10
  • @HenryEcker While there's no specific name for it in spreadsheets, we do have questions about this repeatedly. Recent questions: stackoverflow.com/questions/73983423 stackoverflow.com/questions/74065157 stackoverflow.com/questions/74184584 A generic name for this data transformation tag would greatly help to categorize these questions for duplicate closure.
    – TheMaster
    Oct 26, 2022 at 9:27
  • Oops, your [pandas-explode]. Oct 26, 2022 at 10:58
  • 2
    I agree with @HenryEcker - While maybe not the most common term, there does seem to be broad adoption of the term "explode" to mean transforming an array into a data structure. E.g. learn.microsoft.com/en-us/answers/questions/71417/…
    – JDB
    Oct 26, 2022 at 18:08
  • 2
    Why does "explode" within pandas need a dedicated tag? How is that not a ridiculous level of overkill vs. just tagging it as [pandas] and then including "explode" somewhere in the title?
    – jpmc26
    Oct 27, 2022 at 3:22
  • 1
    "Dataframe" is not a generic concept, and the term does not have currency across languages or domains. If folks want to enshrine this specific data transformation with a tag, it should not include that bizarre word. It will only deter people who aren't using dataframes from using the tag.
    – Tom
    Oct 27, 2022 at 3:59
  • @jpmc26 The tag makes it easy to categorize questions with the same data transformation concept. We tags like [pivot] to categorize other data transformation concept.
    – TheMaster
    Oct 27, 2022 at 7:10
9

Tldr:

AND

Making the data transformation concept described by to be the default concept described by as it is used to describe this concept in multiple libraries


No other programming language, except , seems to use explode to refer to split. Most languages use split to refer to this concept of splitting string to array. I think shouldn't be exclusively used by . I agree with Dan's answer that it is better to be burn it altogether. If that's not possible, we can also consider

The data transformation concept described by pandas isn't unique to pandas. At least two different tags( and ) agree on this definition of explode making it more universal than php's use of explode. If we have a generic [explode] tag or any other name for this concept, it can be used in any other programming languages/tags like , , , to describe the same data transformation, which would be useful in categorizing questions. We can also consider

A unique/generic name for this data transformation is preferred, so that it can be used in a wide range of softwares/libraries. This is similar to other data transformation tags like

8
  • 6
    "Rename pandas-explode => explode" this will probably result in a lot of php-explode questions being autocompleted into the wrong tag. Oct 25, 2022 at 17:18
  • @DanIsFiddlingByFirelight There isn't many though. 2k questions over decades. Do you have a better name for this concept though?
    – TheMaster
    Oct 25, 2022 at 17:21
  • 2k over a decade is comparable to many of the tags we're burning; and accumulating that many in the first place says there's no one following the tag to keep it clean. I'm not the best person to come up with a name since I've never worked with either pandas or spark. It looks like a form of [denormalization]; but that's a broader topic than just a single action. Oct 25, 2022 at 17:24
  • @DanIsFiddlingByFirelight Yes, it would be part of [database-normalization]>part of 1NF. 2k over a decade is comparable to many of the tags we're burning While 2k over a decade might seems many, no one is really adding the tag compared to 2013,2014. See my fork graph here
    – TheMaster
    Oct 25, 2022 at 17:46
  • 5
    [dataframe-explode] works for spark, pyspark, pandas, geopandas, etc. I don't know if there's any places where "explode" is used with this meaning and the structure is not referred to as a DataFrame. Easy synonyms if needed like [pandas-explode] -> [dataframe-explode], [pyspark-explode] -> [dataframe-explode]. I don't think the tag is as useful if we used some type of normalisation nomenclature because that's not how their associated official documentation describes these operations and not how experts in those areas would search for this type of transformation.
    – Henry Ecker Mod
    Oct 25, 2022 at 18:01
  • @HenryEcker I like it. But I think [sql], [js] or [spreadsheet]s don't use [dataframe] to refer to their tables or arrays. Still, [dataframe-explode] is better than [pandas-explode] as it is more generic. I'd still prefer plain [explode], if possible, for wider coverage of the same concept used elsewhere.
    – TheMaster
    Oct 25, 2022 at 18:33
  • 1
    I'm confused about how to vote on this answer. Would I be voting for explode => php-explode or pandas-explode => explode? If you are going to post an answer to a yes/no question, it's helpful if your answer argues one way or the other. If you want to gauge consensus, post more than one answer and let folks vote on the one they prefer.
    – JDB
    Oct 26, 2022 at 18:56
  • @JDB Both. This answer assumes two data transformation concepts: split string to array and split string to make different rows(this creates repitition of contents of other cells, while the former doesn't). [explode] =>[php-explode] AND [pandas-explode]=>[explode]. [Explode] currently has >85% tagged with [php], so it's basically used to refer to what [split] refers to and therefore should not be changed to a different data transformation concept [explode]. So transfer all current questions to [split] and make [pandas-explode] the default [explode], that can be used with every other software.
    – TheMaster
    Oct 26, 2022 at 20:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .