Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Pandas: faster method to count occurrences
Post: Pandas: faster method to count occurrences
Hi.
I'm a file myfile.csv like this:
Conc Date Run I II III IV V
1 13/10/2018 AA 4 23 28 79 11
2 16/10/2018 AA 41 1 43 30 9
3 18/10/2018 AA 21 12 13 56 5
4 20/10/2018 AA 51 25 1 43 14
5 23/10/2018 AA ... |
|
frame |
Data Science |
0 |
2,317 |
May-26-2019, 07:45 PM |
|
|
Thread: Pandas and Date: problem with operator.How to resolve
Post: RE: Pandas and Date: problem with operator.How to ...
Now it works very well, Thanks for your patience Snippsat and Yoriz |
|
frame |
Data Science |
6 |
4,377 |
May-13-2019, 05:50 PM |
|
|
Thread: Pandas and Date: problem with operator.How to resolve
Post: RE: Pandas and Date: problem with operator.How to ...
Thanks Snippsat. The conversion work, but applying "df.where" to filter df["Date"]>"30/11/2014"", the result does not change. Is valid the operator > or i do to use only operator ==? |
|
frame |
Data Science |
6 |
4,377 |
May-13-2019, 04:05 PM |
|
|
Thread: Pandas and Date: problem with operator.How to resolve
Post: RE: Pandas and Date: problem with operator.How to ...
Thanks Yoriz, but the problem is format column date and transform it like this:
8929 18/12/2014 4 80
(day-month-year)
........ |
|
frame |
Data Science |
6 |
4,377 |
May-13-2019, 12:42 AM |
|
|
Thread: Pandas and Date: problem with operator.How to resolve
Post: Pandas and Date: problem with operator.How to reso...
Hi.
I have a file csv (es10.csv) like this:
Output:Conc. Date I II
8926 18/11/2014 1 22
8927 20/11/2014 2 33
8928 30/11/2014 3 15
8929 18/12/2014 4 80
8930 28/12/2014 8 60
8931 31/12/2014 9 12Note: D... |
|
frame |
Data Science |
6 |
4,377 |
May-12-2019, 10:32 PM |
|
|
Thread: How to eliminate magic squares formed by the same numbers, but permuted
Post: RE: How to eliminate magic squares formed by the s...
Thanks 'It's work . Super speed |
|
frame |
General Coding Help |
7 |
3,635 |
May-09-2019, 11:28 AM |
|
|
Thread: How to eliminate magic squares formed by the same numbers, but permuted
Post: RE: How to eliminate magic squares formed by the s...
This is a new code for magic square with same problem. I'm asking how filter a single magic square, after the script has been processed.
The output is:
2,7,6
9,5,1
4,3,8
----
2,9,4
7,5,3
6,1,8
----... |
|
frame |
General Coding Help |
7 |
3,635 |
May-09-2019, 06:29 AM |
|
|
Thread: How to eliminate magic squares formed by the same numbers, but permuted
Post: RE: How to eliminate magic squares formed by the s...
Thank you Nilamo.
I wondered if, without prejudice to the code, there was a way to work on the output data. The object is not iterable and therefore does not allow the use of "set", or of "unique_eve... |
|
frame |
General Coding Help |
7 |
3,635 |
May-08-2019, 08:13 PM |
|
|
Thread: How to eliminate magic squares formed by the same numbers, but permuted
Post: How to eliminate magic squares formed by the same ...
The magic squares that are formed with the first 9 numbers are:
[[6, 1, 8], [7, 5, 3], [2, 9, 4]]
[[2, 7, 6], [9, 5, 1], [4, 3, 8]] etc etc (8 magic squares with permutations)
I would like to elimina... |
|
frame |
General Coding Help |
7 |
3,635 |
May-08-2019, 06:29 PM |
|
|
Thread: python 3 and unique matrix
Post: RE: python 3 and unique matrix
Thanks Gribouillis. It's work |
|
frame |
Data Science |
4 |
3,099 |
Sep-20-2018, 05:11 AM |
|
|
Thread: python 3 and unique matrix
Post: python 3 and unique matrix
I have 3 magic squares like this:
2,7,6
9,5,1
4,3,8
(The Sum is: 15)
-----
2,9,4
7,5,3
6,1,8
(The Sum is: 15)
2,11,5
9,6,3
7,1,10
(The sum is: 18)
The firt two contain the same numbers in di... |
|
frame |
Data Science |
4 |
3,099 |
Sep-19-2018, 09:02 PM |