Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: finding element of specific field in pandas adjacency matrix
Post: finding element of specific field in pandas adjace...

Hi! I have a pandas adjacency dataframe where I need to be able to identify any element on that dataframe by its physical numbered position, not index or column position, nor its coordinate. the da...
amjass12 General Coding Help 0 337 Oct-27-2020, 09:27 AM
    Thread: IS there a way to preserve some order in a tSNE/PCA plot?
Post: IS there a way to preserve some order in a tSNE/PC...

Hi, I was wondering if there is any way to preserve the order of a group of vectors in a tSNE or PCA plot. I have vectors of common words from different (temporal) word2vec models. I have aligned an...
amjass12 Data Science 0 391 Oct-01-2020, 04:43 PM
    Thread: for loop not plotting all element of 'i'
Post: for loop not plotting all element of 'i'

Hello all, I am having a really frustrating problem I cannot figure out. I have run a cross validation for a machine learning model I am working on. I am generating metrics for how well the model ...
amjass12 General Coding Help 0 391 Aug-18-2020, 09:53 AM
    Thread: Problem implementing .iloc slicing in a custom function
Post: RE: Problem implementing .iloc slicing in a custom...

(Mar-03-2020, 01:11 PM)scidam Wrote: Passing 0:12 as an argument value to a function definitely isn't valid Python syntax. Try categoricalIndex=slice(0, 12) instead. this works PERFECTLY!! thank you...
amjass12 Data Science 2 706 Mar-03-2020, 08:51 PM
    Thread: Problem implementing .iloc slicing in a custom function
Post: Problem implementing .iloc slicing in a custom fun...

Hello all, I am stuck with the implementation of slicing dataframes within a custom function. I have looked on the internet and cannot find anything that is helping me :( any help would be much appr...
amjass12 Data Science 2 706 Mar-01-2020, 12:51 PM
    Thread: y-axis on seaborn heatmap not aligned properly
Post: y-axis on seaborn heatmap not aligned properly

Hi all, I am having an issue with a heatmap on seaborn when using pycharm (not sure if this is the right forum so apologies if this is the case) I am not having this issue when i run this code in g...
amjass12 General Coding Help 0 1,079 Oct-01-2019, 10:37 AM
    Thread: Alternative ways of plotting confusion matrix
Post: Alternative ways of plotting confusion matrix

Hi all, I was wondering if you would be able to offer some advise on alternative ways of plotting confusions matrices. This is not strictly a question about code related to data science so i apologi...
amjass12 Data Science 0 1,224 Aug-14-2019, 07:21 PM
    Thread: Help with two lines in a function
Post: RE: Help with two lines in a function

(Jul-28-2019, 09:47 AM)ThomasL Wrote: (Jul-28-2019, 09:33 AM)amjass12 Wrote: thank you so much for all your assistance :) If you appreciate my help then please like my comments and/or give me a re...
amjass12 General Coding Help 6 942 Jul-28-2019, 12:41 PM
    Thread: Help with two lines in a function
Post: RE: Help with two lines in a function

(Jul-28-2019, 08:50 AM)ThomasL Wrote: the error is a line up in df_cm = df_cm[[reorderCols]] what is reorderCols? If it is ('p3', 'p15', 'p30', 'p60', 'p180', 'p365') then this is not a proper index...
amjass12 General Coding Help 6 942 Jul-28-2019, 09:33 AM
    Thread: Help with two lines in a function
Post: RE: Help with two lines in a function

(Jul-27-2019, 08:01 PM)ThomasL Wrote: check what reorderRows is in your first code example just by inserting a print(reorderRows) before that line df_cm = df_cm.reindex(index=[reorderRows])Looking a...
amjass12 General Coding Help 6 942 Jul-28-2019, 08:30 AM
    Thread: Help with two lines in a function
Post: Help with two lines in a function

Hi all, I was wondering if somebody could help me correct two lines in a function i have made to generate a confusion matrix. The lines in question are about reordering columns and indexes as this i...
amjass12 General Coding Help 6 942 Jul-27-2019, 05:32 PM
    Thread: Is there a way to save a CSV file as a python object
Post: RE: Is there a way to save a CSV file as a python ...

(Jul-16-2019, 11:48 AM)perfringo Wrote: (Jul-16-2019, 11:23 AM)amjass12 Wrote: Based on experience in R, reading an R object in to R is near instant and that is what i would consider satisfactory....
amjass12 Data Science 4 1,077 Jul-16-2019, 12:00 PM
    Thread: Is there a way to save a CSV file as a python object
Post: RE: Is there a way to save a CSV file as a python ...

(Jul-16-2019, 11:12 AM)perfringo Wrote: The question is too ambiguous to answer: "its bulky and takes some time to read in to python". What specifically is bulky and what time performance is conside...
amjass12 Data Science 4 1,077 Jul-16-2019, 11:23 AM
    Thread: Is there a way to save a CSV file as a python object
Post: Is there a way to save a CSV file as a python obje...

Hi all, I was wondering if there is a way to save a CSV file as a python object in order to be read in to python quicker. The reason I am cocnerned about this is is that some of the CSV files i hold...
amjass12 Data Science 4 1,077 Jul-16-2019, 11:06 AM

User Panel Messages

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