You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Finally, some replacement functions are provided for some `pandas` operations which, if used, would return a `pandas.DataFrame` instead of a `~.TfsDataFrame`.
114
-
115
-
.. autolink-preface:: import tfs, pandas as pd
116
-
.. code-block:: python
117
-
118
-
df1 = tfs.read("file1.tfs")
119
-
df2 = tfs.read("file2.tfs")
120
-
121
-
# This returns a pandas.DataFrame and makes you lose the headers
122
-
result = pd.concat([df1, df2])
123
-
124
-
# Instead, use our own
125
-
result = tfs.frame.concat([df1, df2]) # you can choose how to merge headers too
Finally, some replacement functions are provided for some `pandas` operations which, if used, would return a `pandas.DataFrame` instead of a `~.TfsDataFrame`.
82
+
83
+
.. autolink-preface:: import tfs, pandas as pd
84
+
.. code-block:: python
85
+
86
+
df1 = tfs.read("file1.tfs")
87
+
df2 = tfs.read("file2.tfs")
88
+
89
+
# This returns a pandas.DataFrame and makes you lose the headers
90
+
result = pd.concat([df1, df2])
91
+
92
+
# Instead, use our own
93
+
result = tfs.frame.concat([df1, df2]) # you can choose how to merge headers too
0 commit comments