Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Make an array of string number in a List
Post: RE: Make an array of string number in a List

Hi, We can use numpy to create an array from the list import numpy as np my_list = [2,4,6,8,10] my_array = np.array(my_list) print(my_array)Output:[ 2 4 6 8 10]Just wanted to be more clear about ...
KavyaL General Coding Help 5 3,032 May-27-2020, 04:25 AM
    Thread: add.at() method
Post: RE: add.at() method

import numpy as np x = np.zeros(10) i = range(0,5) np.add.at(x, i, 1) print(x)Output:[1. 1. 1. 1. 1. 0. 0. 0. 0. 0.]Here x will be array with all zeros as known, Then i will be indexing to the array x...
KavyaL Data Science 4 5,242 May-26-2020, 10:56 AM
    Thread: add.at() method
Post: RE: add.at() method

This is how at() method works in the above case np.add.at(x,i,1) Here x will be array with all zeros as known, Then i will be indexing to the array x, suppose you have given i = range(0,5), then this...
KavyaL Data Science 4 5,242 May-26-2020, 04:53 AM
    Thread: Trying to color an excel row based on list
Post: RE: Trying to color an excel row based on list

Hi john, I think this would help you in coloring entire row instead of individual cell for y in range(1,max_column+1): ws2.cell(row=ro,column=y).fill = lightblueFill
KavyaL General Coding Help 2 6,480 May-19-2020, 10:35 AM

User Panel Messages

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