py tag

191 questions


1 answers
75 views
0
Help me crawl with Scrappy

<span class=fnt_e07 lang=en>I <i class=fnt_e08 N=a:smd.words tabindex=0 lang=en><input type=hidden name=assist value=don lang=en>don</i>'t <i class=fnt_e08 N=a:smd.words tab...

2 years ago

1 answers
91 views
0
How to Use Scrapy Threads

Hi, how are you?I do web-crawling with Scrappy Since there's a lot of data, it takes more than 10 hours to get it...I looked up how to solve this, and they said we could use a thread I've never used a...


2 answers
112 views
0
Display dictionary data or images in the Django template

Hi, everyone.I would like to ask you how to display the image data downloaded by scrapy on the long-term template.First of all, the data field downloaded by scrapy is connected to the Django model usi...

2 years ago

1 answers
146 views
0
Python and Scrappy questions.

You want to save a string that you scrap with scrapy to your data using re.sub.Hong Gil-dong (Hong Gil-dong) I removed \n (Hong Gil-dong) from this string and wrote a code to save only the Hong Gil-do...

2 years ago

2 answers
88 views
0
How do I resolve the Lambdify name error in Sympy?

If you receive an object that you spun Fourier_transform with Sympy as lambdify, a name error appears that FourierTransform is not defined even though numpy and sympy are applied to the module. import...


1 answers
103 views
0
When the np.concatenate function axis = 1, the output type question.

When there is an array of two rows and three columns called gird = np.array ([[1, 2, 3, [4, 5, 6])If you do np.concatenate ([gird, grid], axis=1), Why is the result array([[1, 2, 3, 1, 2, 3],[4, 5, 6,...

2 years ago

2 answers
77 views
0
Questions about Python Pandas dataframe

colum 1, colum2a,b,c 30b,c,f 40a,g,z 50...In this data frame, I would like to construct column4 by adding the value of column2 corresponding to a.column3, column4a 80b 70c 70f 40g 50z 50I wou...


1 answers
62 views
0
The difference in roles between shuffle and permutation in Python's No.Fi

The role of shuffle and permutation in Python nupi is to mix arrays randomlyBut I wonder what the difference is between the two.

2 years ago

1 answers
48 views
0
Python numpy, ask me a question

#_*_coding:utf-8 _*_import numpy as nplst = [ [1,2,3], [4,5,6], [7,8,9] ]arr = np.array(lst)a = arr[0:2, 0:2]print(a)I'm studying for my Python exam The result is [[12] [45]] a = arr[0:2, 0:2] I don't...

2 years ago

2 answers
101 views
0
I have a question about copying array objects.

This question is a hash code of the student's questions..Hello, teacherI have a question..function copyArray(array) { for ( var copy=[], i=0, l=array.length; i<l; ++i ) { copy[i] = array[i]; } retu...

« - 13 - »

© 2024 OneMinuteCode. All rights reserved.