row

how can i delete whole day rows on condition column values.. pandas

别说谁变了你拦得住时间么 提交于 2019-12-24 09:11:18
问题 i have below times series data frames i wanna delete rows on condtion (check everyday) : check aaa>100 then delete all day rows (in belows, delete all 2015-12-01 rows because aaa column last 3 have 1000 value) .... date time aaa 2015-12-01,00:00:00,0 2015-12-01,00:15:00,0 2015-12-01,00:30:00,0 2015-12-01,00:45:00,0 2015-12-01,01:00:00,0 2015-12-01,01:15:00,0 2015-12-01,01:30:00,0 2015-12-01,01:45:00,0 2015-12-01,02:00:00,0 2015-12-01,02:15:00,0 2015-12-01,02:30:00,0 2015-12-01,02:45:00,0 2015

pandas python flag transactions across rows

霸气de小男生 提交于 2019-12-24 08:22:22
问题 I have a data as below. I would like to flag transactions - when a same employee has one of the ( 'Car Rental', 'Car Rental - Gas' in the column expense type ) and 'Car Mileage' on the same day - so in this case employee a and c 's transactions would be highlighted. Employee b 's transactions won't be highlighted as they don't meet the condition - he doesn't have a 'Car Mileage' i want the column zflag . Different numbers in that column indicate group of instances when the above condition was

merge almost identical rows filtering NAs and shorter strings

。_饼干妹妹 提交于 2019-12-24 07:46:00
问题 I have some almost identical rows in a dataframe, see ex., the criteria to establish they are related are some variables "sel1,sel2" in this example, the other variables, var1 and var2, must be integrated by the following criteria: 1. discarding NA, or 2. discarding the shorter string (in var2 in the example). So, until now I have discarded the NA, but not find a way to at the same time discard the shorter string. The strings are complex and might have commas, spaces and several types of

How to match rows when one row contain string from another row?

自古美人都是妖i 提交于 2019-12-24 07:35:56
问题 My aim is to find City that matches row from column general_text , but the match must be exact. I was trying to use searching IN but it doesn't give me expected results, so I've tried to use str.contain but the way I try to do it shows me an error. Any hints on how to do it properly or efficient? I have tried code based on Filtering out rows that have a string field contained in one of the rows of another column of strings df['matched'] = df.apply(lambda x: x.City in x.general_text, axis=1)

Generate id for row in JSF datatable

 ̄綄美尐妖づ 提交于 2019-12-24 06:58:47
问题 I am trying to achieve the expand/contract functionality of table rows in JSF using core faces implementation. As answered in one of my earlier thread this is not straight forward to achieve in core faces implementation. So, I thought of using HTML + jQuery to achieve the functionality. I am calling the row with +/- gif as parent row and the rows that are to be expanded and contracted are its child rows. To make parent row aware of which child it needs to show or hide, I am making use of

How to find/delete duplicated records in the same row

拜拜、爱过 提交于 2019-12-24 06:36:12
问题 It's possible to make a query to see if there is duplicated records in the same row? I tried to find a solution but all I can find is to detected duplicated fields in columns, not in rows. example, let's say I have a table with rows and items: | id | item1 | item2 | item3 | item4 | item5 | upvotes | downvotes | -------------------------------------------------------------------- | 1 | red | blue | red | black | white | 12 | 5 | So I want to see if is possible to make a query to detect the

UltraWinGrid enter edit mode issue

橙三吉。 提交于 2019-12-24 05:56:59
问题 I have an UltraWinGrid and I want to give the focus to a specific cell and make it enter edit mode programmatically ( no click ). So I did this : If myUltraWinGrid.ActiveRow IsNot Nothing Then myUltraWinGrid.ActiveCell = myUltraWinGrid.ActiveRow.Cells("foo") myUltraWinGrid.PerformAction(Infragistics.Win.UltraWinGrid.UltraGridAction.EnterEditMode) Else myUltraWinGrid.ActiveCell = myUltraWinGrid.Rows(0).Cells("foo") myUltraWinGrid.PerformAction(Infragistics.Win.UltraWinGrid.UltraGridAction

Jasny Bootstrap rowlink close modal is not closing?

限于喜欢 提交于 2019-12-24 05:02:12
问题 I am realy have problem with this Jasny Bootstrap rowlink modal not closing. I have import Bootstrap v 3.2.0. There I have this table where I whant to have when you click on row modal with some data opens. So far this works, on row click modal opens, and show some data - BUT! when I close it, it doesn't close (modal is not closing). Here is my intire code for table with modal: <table class="table table-bordered table-striped table-hover"> <thead> <tr> <th>Interna št.</th> </tr> </thead>

Jasny Bootstrap rowlink close modal is not closing?

孤者浪人 提交于 2019-12-24 05:02:12
问题 I am realy have problem with this Jasny Bootstrap rowlink modal not closing. I have import Bootstrap v 3.2.0. There I have this table where I whant to have when you click on row modal with some data opens. So far this works, on row click modal opens, and show some data - BUT! when I close it, it doesn't close (modal is not closing). Here is my intire code for table with modal: <table class="table table-bordered table-striped table-hover"> <thead> <tr> <th>Interna št.</th> </tr> </thead>

What is a row constructor used for?

喜你入骨 提交于 2019-12-24 04:36:07
问题 In PostgreSQL, what is the ROW() function used for? Specifically what is the difference between SELECT ROW(t.f1, t.f2, 42) FROM t; where f1 is of type int , f2 is of type text and CREATE TYPE myrowtype AS (f1 int, f2 text, f3 numeric); 回答1: You are confusing levels of abstraction. As other answers already point out, CREATE TYPE only registers a (composite / row) type in the system. While a ROW constructor actually returns a row. A row type created with the ROW constructor does not preserve