Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: TypeError: unsupported operand type(s) for -: 'str' and 'str'
Post: RE: TypeError: unsupported operand type(s) for -: ...

Thanks Buran, But in my data set it contain string also so it through an error [python] df=pd.read_csv("IMDB_data.csv",encoding='cp1252',skiprows=[2],dtype='float64') [\python] ----------------...
Balaji General Coding Help 4 10,101 Oct-11-2019, 10:19 AM
    Thread: TypeError: unsupported operand type(s) for -: 'str' and 'str'
Post: RE: TypeError: unsupported operand type(s) for -: ...

import os import pandas as pd import numpy as np import matplotlib as mlt import csv os.chdir("F:\Data Science\python program") df=pd.read_csv("IMDB_data.csv",encoding='cp1252',skiprows=[2]) IMD...
Balaji General Coding Help 4 10,101 Oct-11-2019, 07:16 AM
    Thread: TypeError: unsupported operand type(s) for -: 'str' and 'str'
Post: TypeError: unsupported operand type(s) for -: 'str...

Hi, I am new to python. I am trying to do some operation with my data set I am trying to do this operation df['dif_and_sq']=(df['imdbRating']).sub((df['imdbVotes'])) i am getting this...
Balaji General Coding Help 4 10,101 Oct-10-2019, 06:05 AM
    Thread: I am trying to read a pandas file
Post: I am trying to read a pandas file

Hi, while reading a csv file i get a error like this UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa3 in position 127: invalid start byte How to clear this error
Balaji General Coding Help 1 1,949 Oct-08-2019, 01:35 PM

User Panel Messages

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