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.

R-like range() function

See original GitHub issue

In R, if I supply range(dataframe), I get back a vector of the minimum value in all the dataframe and the maximum value in all the dataframe.

DataFrame’s min() and max() functions operate only on single columns. The way to do it currently is


minimum, maximum = (min(df.min()), max(df.max())

It’s not a critical limitation, but it is convenient to have at times.

Issue Analytics

  • State:closed
  • Created 12 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
wesmcommented, Oct 25, 2011

What about df.describe()?

0reactions
wesmcommented, Nov 14, 2011

feel free to just accumulate things in a branch and I’ll merge them whenever. i’m about to put the kibosh on anymore changes to 0.5.1, do a little more sanity checking, fix up docs, then cut the release

Read more comments on GitHub >

github_iconTop Results From Across the Web

RLIKE operator in MySQL
RLIKE : This operator in MySQL is used to performs a pattern match of a string expression against a pattern. Syntax : RLIKE...
Read more >
Python range() Function
The python range() function creates a collection of numbers on the fly, like 0, 1, 2, 3, 4. This is very useful, since...
Read more >
Spark rlike() Working with Regex Matching Examples
rlike() function can be used to derive a new Spark/PySpark DataFrame column from an existing column, filter data by matching it with regular ......
Read more >
MySQL 8.0 Reference Manual :: 12.8.2 Regular Expressions
Returns the starting index of the substring of the string expr that matches the regular expression specified by the pattern pat , 0...
Read more >
RLIKE
RLIKE is similar to the LIKE function, but with POSIX extended regular expressions instead of SQL LIKE pattern syntax. It supports more complex...
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