[Python] It might be useful to list the data frames

  1. I tried a method to handle a large number of data frames as a list. It may be general knowledge, but I made a note of it because it was not introduced. ・ Usually, you give each one a name and work.

    import pandas as pd df1 = ... df2 = ... df3 = ... Processing using df1, df2, df3

It is difficult to process a large number of data frames repeatedly. That's where the list comes in. It can be used conveniently other than repetitive processing. I read multiple data frames and use them when mapping.

import pandas as pd
df = []
for i in range(3): 
    df.append(...)
for i in range(3):
    df[i] = ...

I'm a beginner. Supervised, thank you.

Recommended Posts

[Python] It might be useful to list the data frames
Python 3.9 dict merge (`|`) seems to be useful
Python amateurs try to summarize the list ①
Just add the python array to the json data
[Algorithm x Python] How to use the list
A python amateur tries to summarize the list ②
[Python] Precautions when retrieving data by scraping and putting it in the list
[Python] How to remove duplicate values from the list
Write data to KINTONE using the Python requests module
[Python] How to output the list values in order
4 boxes that might be useful for the Pepper hackathon
I want to be able to analyze data with Python (Part 3)
Try to get the function list of Python> os package
[Python] Convert list to Pandas [Pandas]
How to switch the configuration file to be read by Python
I want to be able to analyze data with Python (Part 1)
[Python] How to use list 1
Various ways to calculate the similarity between data in python
I want to be able to analyze data with Python (Part 4)
Recursively get the Excel list in a specific folder with python and write it to Excel.
Five useful Python data types that are easy to forget
I want to be able to analyze data with Python (Part 2)
Useful tricks related to list and for statements in Python
Return the image data with Flask of Python and draw it to the canvas element of HTML
Build a Python environment and transfer data to the server
How to get the last (last) value in a list in Python
[Introduction to Python] <list> [edit: 2020/02/22]
How to handle data frames
[Introduction to Python] How to get data with the listdir function
Pass OpenCV data from the original C ++ library to Python
Extract the value closest to a value from a Python list element
[Python] What is pip? Explain the command list and how to use it with actual examples
processing to use notMNIST data in Python (and tried to classify it)
If you remove the list to be looped, you will get terrible.
Python environment construction 2016 for those who aim to be data scientists
[pepper] Pass the JSON data obtained by python request to the tablet.
Convert the result of python optparse to dict and utilize it
Have python check if the string can be converted / converted to int
Try to solve the shortest path with Python + NetworkX + social data
[Python] A program that rotates the contents of the list to the left
[Python] How to FFT mp3 data
Leave the troublesome processing to Python
In the python command python points to python3.8
How to get the Python version
Convert list to DataFrame with python
Python> list> Convert double list to single list
[Python] How to import the library
[Python] How to use list 3 Added
Useful to remember! 10 Python Standard Libraries
About the basics list of Python basics
[Python] Change the alphabet to numbers
[Python] When the priority is the same in Priority Queue, it can be acquired in the order in which it was added to the queue.
Read the data of the NFC reader connected to Raspberry Pi 3 with Python and send it to openFrameworks with OSC
When I tried to run Python, it was skipped to the Microsoft Store
[Introduction to Python] What is the difference between a list and a tuple?
[Python] A program that calculates the number of socks to be paired
Python> sys.path> List of strings indicating the path to search for modules
Try to image the elevation data of the Geographical Survey Institute with Python
[Introduction to Python] How to sort the contents of a list efficiently with list sort
Address to the bug that node.surface cannot be obtained with python3 + mecab
Switch the module to be loaded for each execution environment in Python