Top "Output-formatting" questions

questions on how to output non-string objects into one or more lines of text, for instance numbers (precision, justify), or arrays (placing separators, newlines)

How to print the full NumPy array, without truncation?

When I print a numpy array, I get a truncated representation, but I want the full array. Is there any …

python arrays numpy options output-formatting
TypeError: not all arguments converted during string formatting python

The program is supposed to take in two names, and if they are the same length it should check if …

python string python-3.x typeerror output-formatting
Controlling number of decimal digits in print output in R

There is an option in R to get control over digit display. For example: options(digits=10) is supposed to give …

r precision digits r-faq output-formatting
How to show full column content in a Spark Dataframe?

I am using spark-csv to load data into a DataFrame. I want to do a simple query and display the …

apache-spark dataframe spark-csv output-formatting
Alternate output format for psql

I am using PostgreSQL 8.4 on Ubuntu. I have a table with columns c1 through cN. The columns are wide enough …

postgresql output-formatting psql
Removing display of row names from data frame

I am creating a dataframe using this code: df <- data.frame(dbGetQuery(con, paste('select * from test'))) Which …

r printing dataframe output-formatting rowname
How to output text in the R console without creating new lines?

I would like to output a progress indicator during my lengthy running algorithms. I can easily "bubble up" a progress …

r newline rstudio output-formatting
Formatting output in C++

In a C++ code I have a matrix of double variables which I print out. However because all of them …

c++ output-formatting
How to control number of decimal digits in write.table() output?

When working with data (e.g., in data.frame) the user can control displaying digits by using options(digits=3) and …

r excel number-formatting decimal-point output-formatting
Remove name, dtype from pandas output of dataframe or series

I have output file like this from a pandas function. Series([], name: column, dtype: object) 311 race 317 gender Name: column, dtype: …

python pandas dataframe series output-formatting