Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: My Django 2.0.6 logging is not working while product merging
Post: My Django 2.0.6 logging is not working while produ...
Hi Experts,
I am facing a strange issue in my application built on Django 2.0.6+MySql 5.7+Python3.6.
I am trying to merge two products with same name so that I can remove duplicacy.
But when I clic... |
|
PrateekG |
Web Scraping & Web Development |
0 |
2,150 |
Jul-26-2018, 02:24 PM |
|
|
Thread: How to remove html content from a column of the datafarme in Python3.6?
Post: RE: How to remove html content from a column of th...
(Jul-25-2018, 09:38 PM)Larz60+ Wrote: the file is not csv, it's slsx
row 210 has html code enbedded in it.
probably some sort of formatting, but if it's not needed, open in a spreadsheet and delete ... |
|
PrateekG |
General Coding Help |
3 |
3,153 |
Jul-26-2018, 04:26 AM |
|
|
Thread: How to remove html content from a column of the datafarme in Python3.6?
Post: How to remove html content from a column of the da...
Hi,
I have a csv file which have a column-merchant product id.
This column has an unexpected data in the form of html like - <p class=""MsoNormal"" style=""border:
For further processing I need t... |
|
PrateekG |
General Coding Help |
3 |
3,153 |
Jul-25-2018, 06:34 PM |
|
|
Thread: How to make my python 3.6 unnesting function correct?
Post: How can I fix my unnesting function code?
Hi All,
I am working on a ETL process using Python3.6.
For now I am facing one issue while unnesting 'Options' column in my dataframe.
Currently I am downloading two csv files from FTP location and ... |
|
PrateekG |
Data Science |
6 |
3,719 |
Jul-24-2018, 12:09 PM |
|
|
Thread: Need help to correct my multiprocessing code
Post: Need help to correct my multiprocessing code
Hi Experts,
I have a csv file containing more than 60,000 records in a ftp location.
I have written a Python script which searches the product from the above csv, translation the product data to dif... |
|
PrateekG |
Networking |
1 |
2,495 |
Jul-20-2018, 06:26 AM |
|
|
Thread: How to make my python 3.6 unnesting function correct?
Post: How to make my python 3.6 unnesting function corre...
Hi All,
I have a csv file containing product details. From which I am extracting required informations.
There is one column in the csv-Options and it contains values like- [], [['Newborn (2.5-6kg)', ... |
|
PrateekG |
Data Science |
6 |
3,719 |
Jul-20-2018, 06:04 AM |
|
|
Thread: Issue in my multiprocessing Python code?
Post: RE: Issue in my multiprocessing Python code?
|
PrateekG |
General Coding Help |
7 |
4,210 |
Jul-19-2018, 06:19 PM |
|
|
Thread: Issue in my multiprocessing Python code?
Post: RE: Issue in my multiprocessing Python code?
Thanks gontajones! I got the cause of the issue.
And yes language_code is a required arguement.
But couldn't understand by the link how can I wrape and use it in my code :(
I replaced map with starm... |
|
PrateekG |
General Coding Help |
7 |
4,210 |
Jul-19-2018, 11:51 AM |
|
|
Thread: Issue in my multiprocessing Python code?
Post: RE: Issue in my multiprocessing Python code?
(Jul-19-2018, 10:17 AM)gontajones Wrote: Who is calling process_product_data()?
If it's not the main thread you should use:
from multiprocessing.pool import ThreadPool
process_product_data() is the... |
|
PrateekG |
General Coding Help |
7 |
4,210 |
Jul-19-2018, 10:38 AM |
|
|
Thread: Issue in my multiprocessing Python code?
Post: Issue in my multiprocessing Python code?
Hi all,
I am written a Python 3.6 ETL process where I am searching and then translating the 42000 products from a csv file.
The whole ETL process is taking more than 10 hours to complete.
I tried t... |
|
PrateekG |
General Coding Help |
7 |
4,210 |
Jul-19-2018, 10:00 AM |
|
|
Thread: How can I send error message to slack using webhook url in Python?
Post: RE: How can I send error message to slack using we...
Hi Everyone,
I found my mistake and sharing the actual code so that it may help others-
def send_message(url, message):
payload = {"text":message, "channel":"#help"}
try:
slack_req = ... |
|
PrateekG |
General Coding Help |
2 |
3,649 |
Jul-19-2018, 07:42 AM |
|
|
Thread: How can I send error message to slack using webhook url in Python?
Post: How can I send error message to slack using webhoo...
Hi All,
I have several Python functions. In case of any error I want to send the error message to slack. For this I have added below line of code in every except block -
except Exception as ex:
... |
|
PrateekG |
General Coding Help |
2 |
3,649 |
Jul-18-2018, 08:23 AM |
|
|
Thread: How can I get last modified time of a file in ftp?
Post: How can I get last modified time of a file in ftp?
Hi All,
There are some files put in a ftp location.
I am able to connect, see the files and download in local successfully with below code written in Python3.6-
import ftplib
server = ftplib.FTP()
se... |
|
PrateekG |
Networking |
1 |
5,529 |
Jul-17-2018, 04:45 AM |
|
|
Thread: how to connect and read fiels from dropbox using Python3.6?
Post: RE: how to connect and read fiels from dropbox usi...
(Jul-11-2018, 06:57 AM)buran Wrote: (Jul-11-2018, 05:20 AM)PrateekG Wrote: Since docs are not clearThat is pretty much your opinion. Did you read
https://www.dropbox.com/developers/docum...n#tuto... |
|
PrateekG |
General Coding Help |
4 |
3,403 |
Jul-11-2018, 10:43 AM |
|
|
Thread: how to connect and read fiels from dropbox using Python3.6?
Post: RE: how to connect and read fiels from dropbox usi...
Since docs are not clear to me, I am sharing my solution so that it may help others also-
In dropbox's app console we need to generate access token which can be used as below:
def connect_to_dropb... |
|
PrateekG |
General Coding Help |
4 |
3,403 |
Jul-11-2018, 05:20 AM |
|
|
Thread: how to connect and read fiels from dropbox using Python3.6?
Post: how to connect and read fiels from dropbox using P...
Hi ALl,
Has anyone connected with the dropbox using Python3.6?
I am trying to first connect with the drobox and then I need to read some csv files from there.
For that I have written a helper class ... |
|
PrateekG |
General Coding Help |
4 |
3,403 |
Jul-10-2018, 04:40 AM |
|
|
Thread: How to save uploaded image url in database from Django?
Post: RE: How to save uploaded image url in database fro...
I have solved the issue by my own and sharing here for others-
def save(self,commit=True):
brand = super(BrandForm, self).save(commit=False)
brand.image_url = self.image_url
br... |
|
PrateekG |
Web Scraping & Web Development |
14 |
14,864 |
Jul-04-2018, 05:18 PM |
|
|
Thread: How to save uploaded image url in database from Django?
Post: RE: How to save uploaded image url in database fro...
same error-
Error: html_img_tag = new_brand.logo('brand')
TypeError: 'SafeText' object is not callable |
|
PrateekG |
Web Scraping & Web Development |
14 |
14,864 |
Jul-04-2018, 12:05 PM |
|
|
Thread: How to save uploaded image url in database from Django?
Post: RE: How to save uploaded image url in database fro...
(Jul-04-2018, 11:18 AM)gontajones Wrote: I made a mistake.
In your model the field must be something like:
image_url = models.CharField(max_length=200)Why are you doing this?
image_url = forms.Char... |
|
PrateekG |
Web Scraping & Web Development |
14 |
14,864 |
Jul-04-2018, 11:53 AM |
|
|
Thread: How to save uploaded image url in database from Django?
Post: RE: How to save uploaded image url in database fro...
(Jul-04-2018, 09:53 AM)gontajones Wrote: Try this:
class Brand(models.Model):
name = models.CharField(max_length=60)
description = models.TextField(blank=True, null=True)
image_url = f... |
|
PrateekG |
Web Scraping & Web Development |
14 |
14,864 |
Jul-04-2018, 10:50 AM |