@Dan, what a beautiful one-liner, which also shows the intention most clearly. You might consider adding it to this list.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Help needed regarding making list, and modifying them, inside a DataFrame | 5 | 382 | September 14, 2022 | |
| Creating one column from another | 5 | 349 | September 8, 2022 | |
| Create a GroupedDataFrame by the relations of rows rather than the values of the rows in a column, e.g `groupby` consecutive dates? | 14 | 811 | March 29, 2023 | |
| Iterating through all possibilities | 2 | 502 | October 27, 2020 | |
| How to make dataframe from output of loop | 1 | 520 | December 10, 2020 |