Dynamically create new dataframes with pandas

Perl, Ruby, JS, When you want to handle pandas with the feeling of a free dictionary structure, There is no key (index) by all means! I think it will be a problem.

First,

AAA["hoge"].iloc[n] = "hogehoge"

It starts with throwing away such ideas.

#First, prepare df only for column
df = pd.DataFrame( columns=['A','B'] )

#Make a line
tmp_se = pd.Series( [ i, i*i ], index=list_df.columns )

#Add line as record to df
df = df.append( tmp_se, ignore_index=True )

I referred to the following. https://qiita.com/567000/items/d8a29bb7404f68d90dd4

Recommended Posts

Dynamically create new dataframes with pandas
Create a new csv with pandas based on the local csv
Create an age group with pandas
How to create dataframes and mess with elements in pandas
pandas 1.2.0 What's new
Create a new page in confluence with Python
Quickly visualize with Pandas
Processing datasets with pandas (1)
Bootstrap sampling with Pandas
Convert 202003 to 2020-03 with pandas
Processing datasets with pandas (2)
Merge datasets with pandas
Try to dynamically create a Checkbutton with Python's Tkinter
Learn Pandas with Cheminformatics
Data visualization with pandas
[Xlsxwriter] Create conditional formatting Excel sheet with pandas + xlsxwriter [pandas] Memo
Create games with Pygame
Create filter with scipy
Data manipulation with Pandas!
Dynamically create tables in schema with Django, dynamically generate models
Shuffle data with pandas
[Python] Plotly draws Pandas dataframes in one shot with Cufflinks
Get table dynamically with sqlalchemy
Read csv with python pandas
Load nested json with pandas
Create an environment with virtualenv
Create an API with Django
Create / search / create table with PynamoDB
Create 3d gif with python3
Create graph with plotly button
Create a homepage with django
Learn new data with PaintsChainer
[Python] Change dtype with pandas
Create Image Viewer with Tkinter
Create custom rules with ElastAlert
Standardize by group with pandas
Create a heatmap with pyqtgraph
Dynamically move Amplify with Lambda
Create a directory with python
Swap columns in pandas dataframes
Prevent omissions with pandas print
Create xlsx file with XlsxWriter
Data processing tips with Pandas