pandas tag

pandas is a software library written for the Python programming language for data manipulation and analysis. In particular, it offers data structures and operations for manipulating numerical tables and time series. It is free software released under the three-clause BSD license. The name is derived from the term "panel data", an econometrics term for data sets that include observations over multiple time periods for the same individuals. Its name is a play on the phrase "Python data analysis" itself. Wes McKinney started building what would become pandas at AQR Capital while he was a researcher there from 2007 to 2010.

Reference: WIKIPEDIA

271 questions


3 answers
46 views
0
Please tell me a good way to keep the vertical data horizontally in Python's Pandas.

I'm a python beginner.I've been doing a lot of research, but I don't feel comfortable, so could someone tell me?◆ This is a way to convert vertical data to horizontal data in Pandas data frames.Suppos...

2 years ago

1 answers
37 views
0
Error while merging data in Pandas

Why do I get an error when I run the following program with the date key and merge_df1 as a left external connection?import numpy as npimport pandas aspdseries=pd.Series('1/1', '1/2', '1/3', '1/4', '1...

2 years ago

1 answers
44 views
0
I want to create a function that flags lines that contain specific strings.

for the following data frames:>df=pd.DataFrame({'pref':['Tokyo', 'Kanagawa', 'Hokkaido', 'Saitama', 'Chiba', 'Shizuoka',>'Nagano Prefecture',>'city': ['Shibuya Ward', 'Yokohama City', 'Hakoda...

2 years ago

1 answers
44 views
0
How to get only mode() results in a for statement in Pandas

As a result of executing the following code, I was able to obtain the most frequent value in series type, but what should I do to obtain only actual data such as Daiji Nakahara and Daiji Tetsuwa?▼ Cod...

2 years ago

1 answers
39 views
0
Data Frame Nan and None Comparison

Python's Pandas has two data frames raw1, raw2, and I would like to output only the different ones (x1!=y1 or x2!=y2) comparing raw1's x1, x2 and raw2's y1, y2, but the missing value is nan on one sid...

2 years ago

1 answers
95 views
0
The pip install pandas will not be able to build the wheel.

I'm a python beginner.The environment is Windows 10, Python 3.8.0.I'm using VScode.pip install pandas displays the following:Could not build wheels for numpy, since package 'wheel' is not installed.Co...

2 years ago

1 answers
88 views
0
I want to resolve 'DataFrame' object has no attribute's split' error in pandas

I would like to split the string (the string of numbers in the OID column) separated by the / read from CSV in pandas and re-list it, but I can't implement it well because of the error in the title.I ...

2 years ago

1 answers
42 views
0
I want to delete the time zone from DataFrame, but it doesn't work.

The following DataFrames are available:install_t0NaT1 2020-03-28 19:31:22.159174+09:002NaT3 2019-12-31 10:38:38.165566+09:004 2020-06-14 15:29:41.511317+09:00Name: install_t, dtype: datetime64 [ns, py...

2 years ago

2 answers
46 views
0
Use python3isin function but cannot extract data in order

The following files are available:Df12 Original Fileurl, url_category, todoA,app,0B,app,1B,app,2A,app,3C,matome,4........In the above form, todo is not duplicated from 1 to 100, and other items are du...

2 years ago

1 answers
56 views
0
AttributeError in sample('H').ohlc()

I wanted to resample in OHLC format on Python, so I wrote the following code, but it turned out to be AttributeError.Does anyone know what's wrong?The running environment is PythonScript in AzureML.So...

2 years ago
« - 13 - »

© 2024 OneMinuteCode. All rights reserved.