Skip to main content
Filter by
Sorted by
Tagged with
1 vote
2 answers
46 views

Would like to delete one single element from a Python DataFrame, as in: a x b c 1 2 3 becomes a b c 1 2 3 All the solutions I have seen seem to require copies and creating a new DataFrame, which ...
Tomas By's user avatar
  • 1,404
1 vote
3 answers
61 views

if I have saved a data frame using pickle in a binary file how can I access it? def create_dataset(path): """ creates an binary file with dataset saved in it. "&...
Prince Khatri's user avatar
-3 votes
2 answers
53 views

I’m trying to write a Python script that allows the user to input the name of a column and then prints the value counts of that column from a pandas DataFrame. Here's what I currently have: def ...
user32044318's user avatar
0 votes
1 answer
25 views

The problem appears when i have a big amount of values in my pandas df. When i take 27 or 54 values(1 or 2 columns) it works normaly, but when i take more columns it gives me this erorr (i import gs ...
Oleksii Korna's user avatar
-4 votes
0 answers
61 views

import pandas as pd import numpy as np import seaborn as sns df=pd.read_excel('Online_Retail.xlsx') #Alternative Method to Introduce Missing Values: Using numpy.random.rand # Make a copy of the ...
For Work's user avatar
3 votes
2 answers
65 views

I am trying to convert a column of pd.Timestamp objects into a columns of type str where the dates are encoded in ISO format. The class pd.Timestamp has the handy classmethod .isoformat() that does ...
SeF's user avatar
  • 4,329
1 vote
1 answer
62 views

When pandas.read_excel(), df.to_excel(), geopandas.read_file() and gdf.to_file() are called in a certain order in different environments, pd.read_excel() sometimes causes "Kernel has died" ...
Azrael_DD's user avatar
  • 291
0 votes
1 answer
20 views

I am fairly new to Python, and I must have missed something essential because I'm seeing broken functionality all over Pint. I'm starting to think it all comes down to PintArray is not available to ...
sniffer's user avatar
Advice
0 votes
4 replies
67 views

Here is what i have in a dataframe where a column has names and some numbers together since this is a table extracted from a PDF 0 1 2 3 4 Mr. A ...
user32039276's user avatar
1 vote
1 answer
71 views

I've been working on a project to learn Python and play around with machine learning that uses data from the NHL's public API. I've been able to teach myself via documentation and Google searches so ...
Matt's user avatar
  • 1,582
Tooling
1 vote
3 replies
51 views

I have a column named ride_length that is the difference between two datetime columns. It has a data type of time delta series. How can I convert it into a time data type? Current format 1 day 12:58:...
Abira Munir's user avatar
1 vote
1 answer
64 views

I am trying to convert a column of time stamps that are currently of type object to proper datetime. When using pd.to_datetime() on the column I got this error OutOfBoundsDatetime: Out of bounds ...
MikeB2019x's user avatar
  • 1,307
5 votes
2 answers
119 views

I've been experimenting with pandas for my data analysis, however I encountered an issue when dealing with .groupby() and .transform() . Let this be the dataframe: df = pd.DataFrame({ 'group': ['x'...
HTP_1's user avatar
  • 53
1 vote
3 answers
71 views

Amateur programmer here, trying to make my working life bette. I am building a billing program, using selenium webdriver, to facilitate people entering their information into the more complex web-...
Gabriel Dubé's user avatar
-1 votes
1 answer
70 views

I have the following (shortened) list of data (State Vector for an arbitrary satellite): 0.0000000000000000e+00 6.0513311190355308e+06 -2.3889553726207524e-10 -3.9014601994371545e+06 4....
Jon S's user avatar
  • 63

15 30 50 per page
1
2 3 4 5
19282