Questions tagged [drop]
468 questions
0
votes
1 answer
FullCalendar V4 How to set attribute of calendar event after drop
I'm using FullCalendar V4 callback function drop. I try to pass myID which are generated by server to be Calendar event.id, but I do not know how to do. The following is simple code
var calendar = new Calendar(calendarEl, {
drop: function(…

Zazer Lin
- 11
- 4
0
votes
2 answers
Dropping rows in a Data Frame
I am trying to drop some specific rows in a DataFrame df where, the column Time is anything except 06:00:00. I tried the following code but it dosen't seem to work. I even tried adding another column Index to my file to aid the process but still it…

Tapasvi Bhatt
- 35
- 7
0
votes
1 answer
How to fix Ramda drop dropLast type error in pipe?
I am using below code using ramda in typescript and it keeps showing error that type is not matching:
R.pipe(R.drop(2), R.dropLast(5))("hello world");
TS2769: No overload matches this call. The last overload gave the following error.…

SeyyedKhandon
- 5,197
- 8
- 37
- 68
0
votes
1 answer
Drop row from a data frame that overlaps with another dataframe
I have a first dataframe:
df1 = pd.DataFrame({'subject':[1,4,8,1,2,6,9,11,12,13,14,15,16,17,18,19,20,21,22,23,24,2,3,4,5,8,9,10],
'trial':[1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3]})
print(df1)
subject …

Sebastián Moyano
- 47
- 4
0
votes
0 answers
How do i delete rows from data frame in pandas?
This is aggregation to the column from the data frame:
Material_Type
ZHW1 155437.557652
ZHW3 12432.078625
ZUB1 487.222162
And I want to delete the ZUB1 category.
I tried:
df.loc[(df!='ZUB1').any(1)]
and Im stiil geting…

Danielhab
- 29
- 8
0
votes
1 answer
multiple condition row dropping
I would like to select a subset of my dataframe which satisfies the following condition: I have a dataframe that shows the result of different tests of three students. As soon as one of the students gets the result "poor", they can't be considered…

Sanoj
- 301
- 1
- 16
0
votes
1 answer
Pandas Drop function for two columns not working
I am trying to drop two columns using Pandas Drop function. However, I am receiving error.
FYI I have printed column names of the data-frame. Why am I receiving such error?
In [284]:
Fulldf.columns
Out[284]:
Index(['PID', 'YearBuilt',…

Pratik Ghatake
- 1
- 1
0
votes
2 answers
R Remove columns from a data.frame with other df
Hello I have 2 dataframes:
df1 looks like:
and the df2 looks like:
I have noticied that the df1 has point symbol (.), while df2 has "-". It is weird because both of them, if I open with a text editor or excel, they have "-".
What I need is to…

WindSur
- 141
- 7
0
votes
2 answers
MATLAB drop observations from a timetable not contained in another timetable
I have two timetables, each of them have 4 columns, where the first 2 columns are of my particular interest. The first column is a date and the second is an hour.
How can I know which observations (by date an hour) are in the timetable 1 but not in…

Antoine Fa
- 61
- 5
0
votes
1 answer
ValueError: Cannot convert column into bool: please use '&' for 'and', '|' for 'or', '~' for 'not' when building DataFrame boolean expressions
I got this error while using this code to drop a nested column with pyspark. Why is this not working? I was trying to use a tilde instead of a not != as the error suggests but it doesnt work either. So what do you do in that case?
def drop_col(df,…

Barushkish
- 69
- 2
- 9
0
votes
0 answers
Not able to drop elements in body always appending at the last
I am appending elements/ texts into the body part of the html using jQuery. And I am using appendTo method to append the content into the div but it is always append at the last not where I want to drop it .
Please let me know which method I can use…

Arvind Vishwakarma
- 221
- 4
- 18
0
votes
1 answer
Cannot delete pandas row using index inplace
In a complex code, I can't delete pandas row using index.
Here is a code simplified:
We declare a pandas df:
I have a dataframe from a csv file:
dataset.head()
As you can see, i deleted row with index=0
But impossible to delete other row using…

Theo75
- 477
- 4
- 14
0
votes
1 answer
Drop rows from excel using python
I have a data that contains 15 rows by 4 columns, does anyone know how to delete every rows except row number 5, 10 and 15?
Figure below shows the input data, the whole highlighted rows would be the rows that I want to retain, in other words, I…

Edison Toh
- 87
- 1
- 11
0
votes
2 answers
Drop rows depending on conditions in two or more columns
I am new at programming so forgive me ignorance.
I have the following dataframe:
ID Name
0 AJ-6 Mark
1 AJ-6 Mark
2 AJ-6-FR Judith
3 AJ-6-FR Judith
4 AJ-6-FR Christian
.. …

Albert
- 1
- 1
0
votes
1 answer
In Apache Hive, A DB with high count of External Tables takes too long to DROP CASCADE
I have found lots of answers of HOW to drop a DB and all its tables, but nothing around why it takes ~3-4 seconds per table to drop, seemingly in SERIAL (one after the other).
I have a database with 2,414 EXTERNAL Tables pointed at parquet…

Rimer
- 2,054
- 6
- 28
- 43