About 50 results
Open links in new tab
  1. Delete a column from a Pandas DataFrame - Stack Overflow

    Nov 16, 2012 · Actually addresses the WHY part of original question. I've implemented subclasses from pandas dataframe. Doing so will teach you vital part of this answer. Differentiating attributes and …

  2. Difference between as.data.frame (x) and data.frame (x)

    50 What is the difference between as.data.frame(x) and data.frame(x) functions in R? In this following example, the result is the same at the exception of the columns names.

  3. How do I delete rows in a data frame? - Stack Overflow

    Sep 8, 2012 · 17 Create id column in your data frame or use any column name to identify the row. Using index is not fair to delete. Use subset function to create new frame.

  4. python - Update index after sorting data-frame - Stack Overflow

    Oct 16, 2015 · Update index after sorting data-frame Asked 10 years, 4 months ago Modified 4 years, 7 months ago Viewed 276k times

  5. How to rename a single column in a data.frame? - Stack Overflow

    1 I would simply add a new column to the data frame with the name I want and get the data for it from the existing column. like this:

  6. python pandas dataframe, is it pass-by-value or pass-by-reference

    Aug 11, 2016 · The short answer is, Python always does pass-by-value, but every Python variable is actually a pointer to some object, so sometimes it looks like pass-by-reference. In Python every …

  7. How to drop columns by name in a data frame - Stack Overflow

    Mar 8, 2011 · I have a large data set and I would like to read specific columns or drop all the others.

  8. How does one reorder columns in a data frame? - Stack Overflow

    50 As mentioned in this comment, the standard suggestions for re-ordering columns in a data.frame are generally cumbersome and error-prone, especially if you have a lot of columns. This function allows …

  9. Sort (order) data frame rows by multiple columns - Stack Overflow

    I want to sort a data frame by multiple columns. For example, with the data frame below I would like to sort by column 'z' (descending) then by column 'b' (ascending): dd <- data.frame (b = facto...

  10. r - Subset / filter rows in a data frame based on a condition in a ...

    Subset / filter rows in a data frame based on a condition in a column Asked 15 years, 6 months ago Modified 3 years, 5 months ago Viewed 363k times