python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
How to make new pandas column based on multiple conditionals including 'isnull', 'or' and if colB 'isin' colA -like statements?
First time asking. Is there a way to get a new df column including all three statements (or, isnull-like, isin-like) without iterating over a for loop/ keeping code within the spirit of Pandas? I've t...

BLT
Votes: 0
Answers: 5
AttributeError:'str' object has no attribute 'unique' (Pandas.unique)
In my script, I use pandas module. When I execute my file.py - everything works well. But I've converted my file.py to file.exe with auto-py-to-exe and got an error: AttributeError:'str' object has no...
Aleksandr Tyshkevich
Votes: 0
Answers: 1
pandas Dataframe divide a column with a specific value and create new column with the result?
A B
0 0.119 5.344960e+08
1 0.008 7.950629e+09
2 ...

Anjali Kushwaha
Votes: 0
Answers: 2
pandas.Series.str.cat() not working on last element of the pandas Series
I am trying to concatenate each string element of a pandas Series object with '.NS'. My sample code is as follows:
import pandas as pd
asSeries = pd.Series(['HCLTECH', 'ADANIPORTS', 'HDFC', 'TECHM', '...
Balepur
Votes: 0
Answers: 1