#π .count() for python dataframe
14 messages Β· Page 1 of 1 (latest)
@silver fern
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
i dont want the number of no missing values to be in a separate table
i want this column to be alongisde percentage of missing values and number of missng values
how come it is creating a whole new separate table in the display?
it's all one single dataframe
\ is the line continuation character in Python (and many languages), and here it signals it continues below
if it printed the last column alongside, it thinks it will exceed the medium's width or something, so it goes onto a newline
also try directly df as the last expression in a cell, not print(df)
not only the latter is more typing but also it's less aesthetically pleasing
odds are, it will also squeeze it to show it all without newline
print(df) will try to squeeze it whilst
df will just make it as wide with a scroll bar
(At least thatβs what it does on Azure)
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.