Skip to content

Commit aaa7427

Browse files
add code sample for pandas-dev#40986
1 parent edf0a81 commit aaa7427

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

bisect/40986.py

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import pandas as pd
2+
3+
print(pd.__version__)
4+
5+
df = pd.DataFrame(
6+
{
7+
"name": ["Raphael", "Donatello", "Miguel Angel", "Leonardo"],
8+
"mask": ["red", "purple", "orange", "blue"],
9+
"weapon": ["sai", "bo staff", "nunchunk", "katana"],
10+
}
11+
)
12+
13+
df.to_csv("tmnt.csv", index=False, encoding="utf-16")
14+
15+
result = pd.read_csv(
16+
filepath_or_buffer="tmnt.csv",
17+
encoding="utf-16",
18+
sep=",",
19+
header=0,
20+
decimal=".",
21+
memory_map=True,
22+
)
23+
print(result)

0 commit comments

Comments
 (0)