DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
use the index of a dataframe for another dataframe
df2 = pd.DataFrame(df2,index=df1.index)
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#index
#dataframe
#dataframe
ADD COMMENT
Topic
COMMENT
Name
8+4 =
Submit