Posts by Perciliano • 115 points
8 posts
-
0
votes2
answers195
viewsA: Problem when installing Seaborn
With the command of: Pip install Seaborn However, this module needs some dependencies like: numpy scipy pandas matplotlib Check if these are installed and try again, follow the documentation link:…
pythonanswered Perciliano 115 -
-5
votes3
answers248
viewsQ: Regex - take only the first occurrence of a word in Python?
In a string, there are several occurrences of a word, but I want to take only the first occurrence of this, how to do? Below comes 'first' twice, but I wish only the first. re.findall(r'primeiro','…
-
-1
votes1
answer47
viewsQ: In Python, check if the contents of one column are present in another column?
I’m at Jupyter Notebook working with Python. My current dataframe is in the following format - data.Columns['name', 'filename', 'text']. All columns are string type, wish, take the 'name' column and…
-
2
votes2
answers263
viewsQ: In Python, search a string from the information of a column?
I’m at Jupyter Notebook working with Python. Has a dataframe with the name and text fields, in the text, which is a txt loaded, I want to search if there is the string that is exactly the value in…
-
5
votes2
answers260
viewsQ: In Python, how do you remove specific characters from all the records of just one particular column?
I’m at Jupyter Notebook working with Python. The dataframe has some columns, but in a specific column I want to delete all records that end with ". txt", meaning the last 4 characters. Image of the…
-
1
votes1
answer33
viewsQ: In Python E Jupyter Notebook, how to present a full screen record?
I’m at Jupyter Notebook working with Python. My columns are strings and very long, I need to see these complete on screen, how to do this? The image of the dataframe with the "incomplete strings":…
-
0
votes0
answers47
viewsQ: In Python, how to delete " n" from . txt files?
I’m at Jupyter Notebook working with Python. I am importing the txt files with the following code: allLines = [] path = '../data/txt/' fileList = os.listdir(path) for i in fileList: file =…
-
2
votes1
answer107
viewsQ: How to load . txt files from a directory including in the list or dataframe the name of this file in Python?
I’m at Jupyter Notebook working with Python. I have a directory with files in txt, I can iterate in the directory and load these files in txt, however, I also need to take the name of this file as…