Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: UnicodeDecodeError:
Post: RE: UnicodeDecodeError:
Hi. I had the same error. So, I overcame the error just using (encodeing = 'latin-1') when reading the file:
df = pd.read_csv('file.csv', encoding ='latin-1') |
|
garikhgh0 |
Data Science |
18 |
30,493 |
Jun-04-2018, 05:41 AM |
|
|
Thread: Statsmodels
Post: Statsmodels
hi, I have q question on how to define p,q and q values for Arima Models.
fig = plt.figure(figsize=(16,6))
model = ARIMA(ts_log, order=(17, 1, 5))
results_AR = model.fit(disp=-1)
plt.plot(ts_log_... |
|
garikhgh0 |
General Coding Help |
0 |
2,239 |
May-30-2018, 01:21 PM |
|
|
Thread: UnicodeDecodeError:
Post: RE: UnicodeDecodeError:
Hi, friend.
If I found such errors in my file, how to handle them?
R675.csv: ERROR AT LINE 1009 b'"2016-02-01","Htech 6605 Wired\xa0 selfie HV-BTM 11","Accessories","Dalma RSC","1","Sales"\r\n' |
|
garikhgh0 |
Data Science |
18 |
30,493 |
May-16-2018, 01:46 PM |
|
|
Thread: subtruction of columns in pandas
Post: RE: subtruction of columns in pandas
|
garikhgh0 |
Data Science |
3 |
2,729 |
May-14-2018, 05:31 AM |
|
|
Thread: subtruction of columns in pandas
Post: subtruction of columns in pandas
I friends. I would like to ask how to orgnize subtruction of columns. so the dataframe is as below:
when I subtruct columns from each other I use the following code:
df['new'] = df.column_1 - df.col... |
|
garikhgh0 |
Data Science |
3 |
2,729 |
May-11-2018, 09:30 AM |
|
|
Thread: Fail: from .py to .exe
Post: RE: Fail: from .py to .exe
it worked, thanks alot :) |
|
garikhgh0 |
Data Science |
4 |
9,173 |
May-08-2018, 08:25 AM |
|
|
Thread: Fail: from .py to .exe
Post: RE: Fail: from .py to .exe
Please look at the screenshot.
when, moveing the python36.dll file , it gives another error "Failed to execute script : pyi_rth_multiprocessing" |
|
garikhgh0 |
Data Science |
4 |
9,173 |
May-08-2018, 05:56 AM |
|
|
Thread: Fail: from .py to .exe
Post: Fail: from .py to .exe
hi, friends.
I have such a problem, when want to convert my python code into executable, it is being converted successfully, but does not work. when running the exe file it gives
"Error loading Pytho... |
|
garikhgh0 |
Data Science |
4 |
9,173 |
May-08-2018, 05:50 AM |
|
|
Thread: how to remove part of String
Post: how to remove part of String
Hi. I have a question on string slicing.
So. I have Series which looks like so:
'one two three'
'four five six'
'five three'
'seven five four six'
'nine one three'
'seven three six'
I must remove th... |
|
garikhgh0 |
News and Discussions |
1 |
2,376 |
Apr-19-2018, 05:25 AM |
|
|
Thread: DataFrame.astype('category') duplicates column
Post: RE: DataFrame.astype('category') duplicates column
thanks a lot. I would also mention that, when converting objects itno category, the Dtaframe.pivot_table does not work correctly. creates duplictaes |
|
garikhgh0 |
Data Science |
3 |
3,767 |
Apr-18-2018, 07:33 AM |
|
|
Thread: DataFrame.astype('category') duplicates column
Post: DataFrame.astype('category') duplicates column
Hi. I have a problem on convesion of object type into category.
My data shape is (1000000, 6)[Date, object,object, object, int64, column_1]
when using the below code, it duplicates last column, the co... |
|
garikhgh0 |
Data Science |
3 |
3,767 |
Apr-18-2018, 05:31 AM |
|
|
Thread: lookup
Post: lookup
Hi, I'd like to know if there is a mrthod to lookup dataframe tables in pandas/python? |
|
garikhgh0 |
Data Science |
0 |
1,871 |
Apr-16-2018, 09:27 AM |
|
|
Thread: Technical info on reading csv with python
Post: RE: Technical info on reading csv with python
Here is the version info.
I use sublime.
3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:04:45) [MSC v.1900 32 bit (Intel)]
but my PC is 64 bit. |
|
garikhgh0 |
Data Science |
3 |
3,720 |
Apr-12-2018, 05:57 AM |
|
|
Thread: Technical info on reading csv with python
Post: Technical info on reading csv with python
Hi.
I have tried to read 500 MB csv file with pandas in python, but it gives MemoryError. So, could you share your experience on what kind of technial parameters should have the computer in order to... |
|
garikhgh0 |
Data Science |
3 |
3,720 |
Apr-11-2018, 01:42 PM |
|
|
Thread: UnicodeDecodeError:
Post: RE: UnicodeDecodeError:
|
garikhgh0 |
Data Science |
18 |
30,493 |
Apr-10-2018, 01:54 PM |
|
|
Thread: UnicodeDecodeError:
Post: RE: UnicodeDecodeError:
it gave this
R675.csv: ERROR AT LINE 10538 b'2018-03-26,HQ Service Center,Handset,Samsung Galaxy S9+ and Charger \xffBlack,1,Sales\r\n'
it worked, I have cleared white spaces between "Charger" and "... |
|
garikhgh0 |
Data Science |
18 |
30,493 |
Apr-10-2018, 01:02 PM |
|
|
Thread: UnicodeDecodeError:
Post: RE: UnicodeDecodeError:
Traceback (most recent call last):
File "pandas\_libs\parsers.pyx", line 1175, in pandas._libs.parsers.TextReader._convert_tokens
File "pandas\_libs\parsers.pyx", line 1281, in pandas._libs.parser... |
|
garikhgh0 |
Data Science |
18 |
30,493 |
Apr-10-2018, 12:01 PM |
|
|
Thread: UnicodeDecodeError:
Post: RE: UnicodeDecodeError:
it says that it is in possition 31
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 31: invalid start byte |
|
garikhgh0 |
Data Science |
18 |
30,493 |
Apr-10-2018, 10:32 AM |
|
|
Thread: UnicodeDecodeError:
Post: RE: UnicodeDecodeError:
hi, I have dowloaded it from my SAS EG, it is in txt format, when I read the first 100 rows it works, but when try the first 100000 it rises the error
Rep_Date Item_Name Item_Catalog_name W... |
|
garikhgh0 |
Data Science |
18 |
30,493 |
Apr-10-2018, 09:47 AM |
|
|
Thread: which format to use .csv or .xlsx or .txt
Post: RE: which format to use .csv or .xlsx or .txt
I tried to read both of them. the csv format was two time faster than the xlsx in spite of it was about 3 smaller than csv. |
|
garikhgh0 |
News and Discussions |
1 |
3,674 |
Apr-10-2018, 07:12 AM |