You can name the dataframe with the following, and then call the name wherever you like:
import pandas as pd
df = pd.DataFrame( data=np.ones([4,4]) )
df.name="Ones"
print df.name
>>>
Ones
Hope that helps.
More Related Contents:
- How to identify and label similar rows in a pandas data frame
- Renaming column names in Pandas
- Difference between map, applymap and apply methods in Pandas
- How can I use the apply() function for a single column?
- Pandas filtering for multiple substrings in series
- Filtering Pandas DataFrames on dates
- Python pandas insert list into a cell
- How to replace text in a string column of a Pandas dataframe?
- Pandas DataFrame Groupby two columns and get counts
- Pandas dataframe get first row of each group
- How can I map True/False to 1/0 in a Pandas DataFrame?
- Is there a simple way to change a column of yes/no to 1/0 in a Pandas dataframe?
- Calculate time difference between Pandas Dataframe indices
- Factorize a column of strings in pandas
- ‘DataFrame’ object has no attribute ‘sort’
- Changing multiple column names but not all of them – Pandas Python
- How to get the last N rows of a pandas DataFrame?
- python pandas flatten a dataframe to a list
- How to create a dictionary of two pandas DataFrame columns
- AttributeError: ‘DataFrame’ object has no attribute ‘ix’
- What is dtype(‘O’), in pandas?
- Writing large Pandas Dataframes to CSV file in chunks
- Creating an empty Pandas DataFrame, and then filling it
- How to merge a Series and DataFrame
- Pretty print a pandas dataframe in VS Code
- Transpose the data in a column every nth rows in PANDAS
- Pandas custom function to find whether it is the 1st, 2nd etc Monday, Tuesday, etc – all suggestions welcome
- Collapsing rows in a Pandas dataframe if all rows have only one value in their columns
- start index at 1 for Pandas DataFrame
- Multi Index Sorting in Pandas