Questions about items that can be described as empty or having no data value
Questions tagged [is-empty]
776 questions
4
votes
1 answer
How to input an empty string in c from command prompt
I have been revising my skills in the way I came to C language first to start from scratch I am working out few problems myself. In the way I am writing a program which outputs the length of the entered string the code goes like…

BhanuPrakashSakkuri
- 59
- 5
4
votes
2 answers
Python : Convert list of strings to floats with empty/none
I have a = ['1','2','','17']
I would like to apply a min / max operation on it. I can't use pandas/numpy.
I convert it to a float, however, but I can't convert '' to floats with the float() function. Same thing happens if I have a None rather than a…

UltimeCactus
- 73
- 1
- 6
4
votes
4 answers
How to check if object is empty in javascript for all levels in object
I wanted to find out if my object is empty or not for all its nested objects and key-value pairs.
for e.g.,
const x = {
a:"",
b:[],
c:{
x:[]
},
d:{
x:{
y:{
z:""
}
}
}
};
this should be an empty object and…

Jaydeep Galani
- 4,842
- 3
- 27
- 47
4
votes
2 answers
Spring Data JPA Query method to find all objects with empty list property
I have an entity which contains a property that is a list:
@Entity
@Table(name="sales.jobs")
public class Job {
...
private List jobShipments;
...
@OneToMany(cascade=CascadeType.ALL,orphanRemoval=true,…

Tim
- 1,605
- 6
- 31
- 47
4
votes
3 answers
Excel cells from Access export look empty but are not (=isblank=FALSE)
My problem is that an Excel spreadsheet (exported from Access as .xls) has cells that look empty, but are not. This is mucking up my calculations & navigation shortcuts.
There are no formulae or contents in the cells (the answers already posted on…

anna davies
- 41
- 1
- 3
4
votes
5 answers
What does an empty div mean in Jquery or Javascript
I have the following empty div inside my html page:
I need to dynamically update this div with html, but before I do, I need to see if it is empty or not. I have written the following JQuery and…

Rabia Rana Khan
- 202
- 1
- 11
4
votes
1 answer
Php - empty ArrayObject
The ArrayObject class allows objects to work as arrays. When I check if an ArrayObject is empty, though, the result is always false
echo empty(new ArrayObject()); // returns false
Wouldn't it be more coherent with the behavior of an empty array []…

marcosh
- 8,780
- 5
- 44
- 74
4
votes
5 answers
Create empty csv file with pandas
I am interacting through a number of csv files and want to append the mean temperatures to a blank csv file. How do you create an empty csv file with pandas?
for EachMonth in MonthsInAnalysis:
TheCurrentMonth =…

PaulBarr
- 919
- 6
- 19
- 33
4
votes
1 answer
Guava Sets.difference#isEmpty() behaviour
I don't understand the behaviour of Guava's Sets#difference about isEmpty() method :
public static SetView difference(final Set set1, final Set> set2) {
checkNotNull(set1, "set1");
checkNotNull(set2, "set2");
final…

Arno
- 63
- 8
4
votes
3 answers
Check whitespaces and isempty
I am looking for a if statement to check if the input String is empty or is only made up of whitespace and if not continue with the next input. Below is my code so far which gives an error when I input a whitespace.
name =…

A.Bohlund
- 195
- 1
- 10
4
votes
1 answer
My record of database are deleted (with sails)
Sometimes I see that my database is empty, but I don't remove anything.
I am using Sails with MongoDB and I don't know why this is happening.

oihi08
- 737
- 1
- 6
- 20
4
votes
0 answers
Android - Change payment method popup is empty
https://dl.dropboxusercontent.com/u/876916/img/Android_payment_method_empty.png - Screenshot
Two weeks ago some users with different Android 4+ versions started to report an issue (3-4 users each week). All of them was going to do first purchase on…

Oleg Lytovchenko
- 41
- 2
4
votes
0 answers
Corrupt New Android Project in Eclipse on Mac OSX 10.9.4
Corrupt New Android Project in Eclipse on Mac OSX 10.9.4
Problem:
*) New > Project > Android Application Project > ...
*) Upon clicking 'Finish', a project is created, but is obviously corrupt/incomplete, wizard dialog does not close.
*) Project…

richie
- 101
- 1
- 8
4
votes
2 answers
Cell is empty but IsEmpty is not working
I am writing an IF statement that uses the IsEmpty function to determine if True or False.
I tried it both on a cell with a value (e.g., PRB2039) and on a blank cell to test my code, and the result is the same.
I removed formatting, and tried it…

Cecilia Moneta
- 41
- 1
- 1
- 2
4
votes
3 answers
How to Check if all the JTexFields are empty or not?
I am using a for loop to create 9 JTextFields and this is working fine. My problem is, I want to check of all the these JTextField is empty or not' at one time. I know there is a method like:
if (textbox.getText().trim().equals(""))
to check if…

CrazyPixi
- 95
- 3
- 7