Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: How to delete column if entire column values are "nan"
Post: RE: How to delete column if entire column values a...

Thanks a lot!
Sri Data Science 4 3,718 Apr-13-2019, 12:16 PM
    Thread: How to delete column if entire column values are "nan"
Post: RE: How to delete column if entire column values a...

we do not know which column has nan values beforehand, and column names are not the same always.
Sri Data Science 4 3,718 Apr-11-2019, 12:28 PM
    Thread: How to delete column if entire column values are "nan"
Post: How to delete column if entire column values are "...

Hi, I have read csv file in dataframe, and I want to delete column if entire column values are equal to "nan" data.csv: Name Rank subname prevname USA Ca 12 23 nan USA WD 25 78...
Sri Data Science 4 3,718 Apr-10-2019, 03:01 PM
    Thread: How get row index of matching row in column 0
Post: RE: How get row index of matching row in column 0

No data catch in to first or second.
Sri General Coding Help 7 3,640 Apr-10-2019, 01:34 PM
    Thread: How get row index of matching row in column 0
Post: RE: How get row index of matching row in column 0

My original data is in csv and I read using import pandas as pd rw_data=pd.read_csv('raw_WEHP02.csv') and now catch data before "Trail_number" in once csv and from "Trail_number" to end of the file...
Sri General Coding Help 7 3,640 Apr-09-2019, 03:29 PM
    Thread: How get row index of matching row in column 0
Post: RE: How get row index of matching row in column 0

There are 5 empty rows before "Trail_number" if remove empty rows, the "Trail_number" will become row8. I forgot to mention, I also want to delete empty rows. I import pandas because I am reading CS...
Sri General Coding Help 7 3,640 Apr-09-2019, 01:54 PM
    Thread: How get row index of matching row in column 0
Post: How get row index of matching row in column 0

Hi, I have a csv file as below: inter value,70 time interval[min],20 dose_trigger value,-23 warning_linit1,36 warning limit2,15 cooling time [hrs],2 cooling numbe...
Sri General Coding Help 7 3,640 Apr-09-2019, 01:14 PM
    Thread: How to add new rows to existing csv file
Post: How to add new rows to existing csv file

Hi, I have test.csv file as show below Category Value Initial Target 30 new target 49 recovery time [hrs] 2 Now I want to add new rows stored in string format (remo...
Sri General Coding Help 1 3,407 Apr-08-2019, 02:34 PM
    Thread: How to mask the region out side the region of interest
Post: How to mask the region out side the region of inte...

Hi, I have below the circle, and I want to pick three regions of interest. I created a filled circle with center at (0,0), a radius is 20. Now I want to select four ROI (region of interest) and mask ...
Sri Data Science 0 1,782 Apr-04-2019, 12:24 PM
    Thread: [pandas]How to liner fit time series data and get linear fit equation and r square
Post: RE: [pandas]How to liner fit time series data and ...

Thanks,
Sri Data Science 5 3,802 Apr-04-2019, 12:00 PM
    Thread: [pandas]How to liner fit time series data and get linear fit equation and r square
Post: RE: [pandas]How to liner fit time series data and ...

Thanks, and how to add trend line and get equation and Rsquare.
Sri Data Science 5 3,802 Mar-30-2019, 05:08 PM
    Thread: [pandas]How to liner fit time series data and get linear fit equation and r square
Post: [pandas]How to liner fit time series data and get ...

Hi, I have below pandas dataframe: df: Time_golden Golden is_golden 0 2019 -03-20 10:24:30 98.6 golden 1 2019 -03-20 11:10:30 97.0 golden 2 2019 -03-20 13:13:30 ...
Sri Data Science 5 3,802 Mar-30-2019, 08:12 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020