About 13,000,000 results
Open links in new tab
  1. disk usage - Differences between df, df -h, and df -l - Ask Ubuntu

    Question What are the differences between the following commands? df df -h df -l Feedback Information is greatly appreciated. Thank you.

  2. In pandas, what's the difference between df['column'] and …

    May 8, 2014 · The book typically refers to columns of a dataframe as df['column'] however, sometimes without explanation the book uses df.column. I don't understand the difference …

  3. How to get/set a pandas index column title or name?

    To just get the index column names df.index.names will work for both a single Index or MultiIndex as of the most recent version of pandas. As someone who found this while trying to find the …

  4. python - Renaming column names in Pandas - Stack Overflow

    To focus on the need to rename of replace column names with a pre-existing list, I'll create a new sample dataframe df with initial column names and unrelated new column names.

  5. How to concatenate multiple column values into a single column …

    This question is same to this posted earlier. I want to concatenate three columns instead of concatenating two columns: Here is the combining two columns: df = …

  6. python - df.drop if it exists - Stack Overflow

    Nov 30, 2019 · df = df.drop([x for x in candidates if x in df.columns], axis=) It has the benefit of readability and (with a small tweak to the code) the ability to record exactly which columns …

  7. How to sort pandas dataframe by one column - Stack Overflow

    If you want to sort by two columns, pass a list of column labels to sort_values with the column labels ordered according to sort priority. If you use df.sort_values(['2', '0']), the result would be …

  8. python - How to delete rows from a pandas DataFrame based on a ...

    Dec 13, 2012 · I have a pandas DataFrame and I want to delete rows from it where the length of the string in a particular column is greater than 2. I expect to be able to do this (per this …

  9. Why do "df" and "du" commands show different disk usage?

    15 Ok, lets check the man pages: df - report file system disk space usage and du - estimate file space usage Those two tools were meant for different propose. While df is to show the file …

  10. Creating an empty Pandas DataFrame, and then filling it

    df.loc[len(df)] = [a, b, c] As before, you have not pre-allocated the amount of memory you need each time, so the memory is re-grown each time you create a new row. It's just as bad as …